80 lines
2.9 KiB
Diff
80 lines
2.9 KiB
Diff
diff -up chromium-81.0.4044.92/chrome/common/safe_browsing/BUILD.gn.nounrar chromium-81.0.4044.92/chrome/common/safe_browsing/BUILD.gn
|
|
--- chromium-81.0.4044.92/chrome/common/safe_browsing/BUILD.gn.nounrar 2020-04-13 12:01:29.703428516 -0400
|
|
+++ chromium-81.0.4044.92/chrome/common/safe_browsing/BUILD.gn 2020-04-13 12:03:33.653310203 -0400
|
|
@@ -72,39 +72,6 @@ if (safe_browsing_mode == 1) {
|
|
public_deps = [ "//components/safe_browsing/core:csd_proto" ]
|
|
}
|
|
|
|
- source_set("rar_analyzer") {
|
|
- sources = [
|
|
- "rar_analyzer.cc",
|
|
- "rar_analyzer.h",
|
|
- ]
|
|
-
|
|
- deps = [
|
|
- ":archive_analyzer_results",
|
|
- ":download_type_util",
|
|
- ":file_type_policies",
|
|
- "//base",
|
|
- "//base:i18n",
|
|
- "//components/safe_browsing/core:features",
|
|
- "//third_party/unrar:unrar",
|
|
- ]
|
|
-
|
|
- defines = [
|
|
- "_FILE_OFFSET_BITS=64",
|
|
- "LARGEFILE_SOURCE",
|
|
- "RAR_SMP",
|
|
- "SILENT",
|
|
-
|
|
- # The following is set to disable certain macro definitions in the unrar
|
|
- # source code.
|
|
- "CHROMIUM_UNRAR",
|
|
-
|
|
- # Disables exceptions in unrar, replaces them with process termination.
|
|
- "UNRAR_NO_EXCEPTIONS",
|
|
- ]
|
|
-
|
|
- public_deps = [ "//components/safe_browsing/core:csd_proto" ]
|
|
- }
|
|
-
|
|
source_set("disk_image_type_sniffer_mac") {
|
|
sources = [
|
|
"disk_image_type_sniffer_mac.cc",
|
|
@@ -171,7 +138,6 @@ source_set("safe_browsing") {
|
|
":archive_analyzer_results",
|
|
":binary_feature_extractor",
|
|
":download_type_util",
|
|
- ":rar_analyzer",
|
|
"//components/safe_browsing/core:features",
|
|
]
|
|
|
|
diff -up chromium-81.0.4044.92/chrome/common/safe_browsing/DEPS.nounrar chromium-81.0.4044.92/chrome/common/safe_browsing/DEPS
|
|
--- chromium-81.0.4044.92/chrome/common/safe_browsing/DEPS.nounrar 2020-04-03 00:10:40.000000000 -0400
|
|
+++ chromium-81.0.4044.92/chrome/common/safe_browsing/DEPS 2020-04-13 12:01:29.703428516 -0400
|
|
@@ -1,6 +1,5 @@
|
|
include_rules = [
|
|
"+components/safe_browsing",
|
|
"+third_party/protobuf",
|
|
- "+third_party/unrar",
|
|
"+third_party/zlib",
|
|
]
|
|
diff -up chromium-81.0.4044.92/chrome/services/file_util/safe_archive_analyzer.cc.nounrar chromium-81.0.4044.92/chrome/services/file_util/safe_archive_analyzer.cc
|
|
--- chromium-81.0.4044.92/chrome/services/file_util/safe_archive_analyzer.cc.nounrar 2020-04-03 00:10:40.000000000 -0400
|
|
+++ chromium-81.0.4044.92/chrome/services/file_util/safe_archive_analyzer.cc 2020-04-13 12:01:29.703428516 -0400
|
|
@@ -46,10 +46,14 @@ void SafeArchiveAnalyzer::AnalyzeDmgFile
|
|
void SafeArchiveAnalyzer::AnalyzeRarFile(base::File rar_file,
|
|
base::File temporary_file,
|
|
AnalyzeRarFileCallback callback) {
|
|
+#if 0
|
|
DCHECK(rar_file.IsValid());
|
|
|
|
safe_browsing::ArchiveAnalyzerResults results;
|
|
safe_browsing::rar_analyzer::AnalyzeRarFile(
|
|
std::move(rar_file), std::move(temporary_file), &results);
|
|
std::move(callback).Run(results);
|
|
+#else
|
|
+ NOTREACHED();
|
|
+#endif
|
|
}
|