Skip to content
Permalink
Browse files

Apply security patch for rustdoc

CVE number has not yet been assigned, patch made by steveklabnik.
  • Loading branch information...
steveklabnik authored and Mark-Simulacrum committed Jul 7, 2018
1 parent e11d9dd commit 0d2d842eec9e35dd25bbdd0304ec9e08d320d29d
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/librustdoc/lib.rs
@@ -681,8 +681,14 @@ where R: 'static + Send,
}
}

if !plugins.is_empty() && plugin_path.is_none() {
eprintln!("ERROR: You must pass --plugin-path to use --plugins");
std::process::exit(1);
}


// Load all plugins/passes into a PluginManager
let path = plugin_path.unwrap_or("/tmp/rustdoc/plugins".to_string());
let path = plugin_path.unwrap_or("/usr/lib64/rustdoc/plugins".to_string());
let mut pm = plugins::PluginManager::new(PathBuf::from(path));
for pass in &passes {
let plugin = match passes::PASSES.iter()

0 comments on commit 0d2d842

Please sign in to comment.
You can’t perform that action at this time.