Skip to content

Commit

Permalink
real world dep-info file from shouldnt OOM
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Oct 30, 2024
1 parent 2643d13 commit c508b79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file not shown.
6 changes: 6 additions & 0 deletions src/cargo/core/compiler/fingerprint/dep_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,4 +754,10 @@ mod encoded_dep_info {
// Cargo can't recognize v0 after `-Zchecksum-freshess` added.
assert!(EncodedDepInfo::parse(&data).is_none());
}

#[test]
fn parse_realworld_v0_fingerprint_dep_info() {
let data = include_bytes!("dep-lib-cargo_test_macro");
assert!(EncodedDepInfo::parse(&data[..]).is_none());
}
}

0 comments on commit c508b79

Please sign in to comment.