Commit 650c0861 authored by Gela's avatar Gela Committed by Pier Angelo Vendrame
Browse files

Bug 2008365 - Update Content Parent a=dmeehan DONTBUILD

parent a420ecff
Loading
Loading
Loading
Loading
+3 −1
Changes for dom/ipc/ContentParent.cpp: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -3467,7 +3467,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());