Suppress still even more unsafe libc calls
Another batch of mainly win files.
Change-Id: Idceca6376cf389c9acdfc39d0723631c4b8cd249
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6378183
Reviewed-by: Alex Gough <[email protected]>
Owners-Override: Alex Gough <[email protected]>
Commit-Queue: Tom Sepez <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1436967}
diff --git a/content/shell/browser/shell_download_manager_delegate.cc b/content/shell/browser/shell_download_manager_delegate.cc
index efeb0ae..2476f25 100644
--- a/content/shell/browser/shell_download_manager_delegate.cc
+++ b/content/shell/browser/shell_download_manager_delegate.cc
@@ -19,6 +19,7 @@
#include "base/check_op.h"
#include "base/command_line.h"
+#include "base/compiler_specific.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/notreached.h"
@@ -170,9 +171,10 @@
#if BUILDFLAG(IS_WIN)
std::wstring file_part = base::FilePath(suggested_path).BaseName().value();
wchar_t file_name[MAX_PATH];
- base::wcslcpy(file_name, file_part.c_str(), std::size(file_name));
+ UNSAFE_TODO(
+ base::wcslcpy(file_name, file_part.c_str(), std::size(file_name)));
OPENFILENAME save_as;
- ZeroMemory(&save_as, sizeof(save_as));
+ UNSAFE_TODO(ZeroMemory(&save_as, sizeof(save_as)));
save_as.lStructSize = sizeof(OPENFILENAME);
WebContents* web_contents = DownloadItemUtils::GetWebContents(item);
// |web_contents| could be null if the tab was quickly closed.