localcc / gvas

GVAS file format parsing library for rust
MIT License
20 stars 2 forks source link

capacity overflow when parsing drg save file #1

Closed funlennysub closed 1 year ago

funlennysub commented 1 year ago
fn main() {
    let mut file = File::open("SAVE.sav").expect("oopies");

    let mut data = Vec::new();
    file.read_to_end(&mut data)
        .expect("Failed to read test asset");

    let mut cursor = Cursor::new(data);

    let file = GvasFile::read(&mut cursor).expect("Failed to parse gvas file");

    dbg!(file);
}

image

localcc commented 1 year ago

Send the file to reproduce the issue

funlennysub commented 1 year ago

(had to zip it) 00000000000000000_Player.zip