Skip to content

Commit

Permalink
[casr-san] Detect one more out-of-memory case
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetVishnya committed Mar 17, 2023
1 parent 25f4bd3 commit e748972
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions casr/src/bin/casr-san.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ fn main() -> Result<()> {
if sanitizers_stderr.contains("AddressSanitizer: hard rss limit exhausted") {
bail!("Out of memory: hard_rss_limit_mb exhausted");
}
if sanitizers_stderr.contains("AddressSanitizer: out-of-memory") {
bail!("Out of memory");
}

// Create report.
let mut report = CrashReport::new();
Expand Down

0 comments on commit e748972

Please sign in to comment.