You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extern crate tar;
use std::io::{self, Read};
use std::path::Path;
fn main() {
let mut input = String::new();
let result = io::stdin().read_to_string(&mut input);
if result.is_ok() {
let mut a = tar::Archive::new(input.as_bytes());
a.unpack(Path::new("/dev/null"));
}
}
I tried running this library through afl.rs, and came across a panic:
Here is the file that is fed into stdin (this is base64 encoded, make sure to decode it before):
Code I used:
Output
tar-rs/src/lib.rs
Line 167 in 5830d58
The text was updated successfully, but these errors were encountered: