Skip to content

Commit b5322c2

Browse files
committed
security: remediate Track C and Track E findings
1 parent bef4c92 commit b5322c2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

absolute-zero

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit ad085baa7d25de23fd9cf4de3e88e5896e35c708

aletheia/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl Config {
7373
let config_path = repo_path.join(".aletheia.toml");
7474

7575
if config_path.is_file() {
76-
if let Ok(content) = fs::read_to_string(&config_path) {
76+
if let Ok(mut file) = fs::File::open(&config_path) { use std::io::Read; let mut content = String::new(); if file.take(1024 * 1024).read_to_string(&mut content).is_ok() {
7777
return Self::parse_from_string(&content);
7878
}
7979
}

0 commit comments

Comments
 (0)