Commit 660b0a6a authored by Gela's avatar Gela Committed by Pier Angelo Vendrame
Browse files

Bug 2008365 - Update Content Parent a=dmeehan DONTBUILD

parent 0d7c9a5c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3501,7 +3501,9 @@ mozilla::ipc::IPCResult ContentParent::RecvGetIconForExtension(
    return IPC_OK();
  }

  bits->AppendElements(aIconSize * aIconSize * 4);
  // Explicitly zero-initialize the output to ensure we do not send
  // uninitialized heap memory over IPC to the child process to avoid heap data leakage.
  bits->InsertElementsAt(0, aIconSize * aIconSize * 4, 0);

  AndroidBridge::Bridge()->GetIconForExtension(aFileExt, aIconSize,
                                               bits->Elements());