Skip to content

Commit

Permalink
Merge pull request #2249 from hawkeye116477/classic_sec
Browse files Browse the repository at this point in the history
[Classic] Mozilla Foundation Security Advisory 2021-39
  • Loading branch information
MrAlex94 authored Sep 16, 2021
2 parents 26929b9 + cf9855e commit b00e9b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions dom/ipc/ContentChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3256,10 +3256,11 @@ mozilla::ipc::IPCResult
ContentChild::RecvGetFilesResponse(const nsID& aUUID,
const GetFilesResponseResult& aResult)
{
GetFilesHelperChild* child = mGetFilesPendingRequests.GetWeak(aUUID);
RefPtr<GetFilesHelperChild> child;

// This object can already been deleted in case DeleteGetFilesRequest has
// been called when the response was sending by the parent.
if (!child) {
if (!mGetFilesPendingRequests.Remove(aUUID, getter_AddRefs(child))) {
return IPC_OK();
}

Expand All @@ -3279,8 +3280,6 @@ ContentChild::RecvGetFilesResponse(const nsID& aUUID,

child->Finished(succeeded ? NS_OK : NS_ERROR_OUT_OF_MEMORY);
}

mGetFilesPendingRequests.Remove(aUUID);
return IPC_OK();
}

Expand Down
1 change: 1 addition & 0 deletions modules/libpref/init/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,7 @@ pref("network.protocol-handler.external.hcp", false);
pref("network.protocol-handler.external.vbscript", false);
pref("network.protocol-handler.external.javascript", false);
pref("network.protocol-handler.external.data", false);
pref("network.protocol-handler.external.mk", false);
pref("network.protocol-handler.external.ms-help", false);
pref("network.protocol-handler.external.shell", false);
pref("network.protocol-handler.external.vnd.ms.radio", false);
Expand Down
2 changes: 1 addition & 1 deletion xpcom/threads/TimerThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class nsTimerEvent final : public CancelableRunnable
void operator delete(void* aPtr)
{
sAllocator->Free(aPtr);
sAllocatorUsers--;
DeleteAllocatorIfNeeded();
}

Expand All @@ -193,7 +194,6 @@ class nsTimerEvent final : public CancelableRunnable
{
MOZ_ASSERT(!sCanDeleteAllocator || sAllocatorUsers > 0,
"This will result in us attempting to deallocate the nsTimerEvent allocator twice");
sAllocatorUsers--;
}

RefPtr<nsTimerImpl> mTimer;
Expand Down

0 comments on commit b00e9b9

Please sign in to comment.