[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser] 72/73: Bug 1785940 - Fix buggy error path in IPCBlobUtils::Serialize, r=asuth a=RyanVM



This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch geckoview-102.3.0esr-12.0-1
in repository tor-browser.

commit da912d341963b466a1f48cd687b85ae2f1650261
Author: Nika Layzell <nika@xxxxxxxxxxxxxxx>
AuthorDate: Wed Sep 7 23:40:30 2022 +0000

    Bug 1785940 - Fix buggy error path in IPCBlobUtils::Serialize, r=asuth a=RyanVM
    
    Differential Revision: https://phabricator.services.mozilla.com/D156723
---
 dom/file/ipc/IPCBlobUtils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dom/file/ipc/IPCBlobUtils.cpp b/dom/file/ipc/IPCBlobUtils.cpp
index 00a4537b74164..f4956a42c98eb 100644
--- a/dom/file/ipc/IPCBlobUtils.cpp
+++ b/dom/file/ipc/IPCBlobUtils.cpp
@@ -129,7 +129,7 @@ nsresult SerializeInternal(BlobImpl* aBlobImpl, M* aManager,
     RefPtr<RemoteLazyInputStream> stream =
         RemoteLazyInputStream::WrapStream(inputStream);
     if (NS_WARN_IF(!stream)) {
-      return rv.StealNSResult();
+      return NS_ERROR_FAILURE;
     }
 
     aIPCBlob.inputStream() = stream;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits