unsafe extern "C" fn write_crash_readme(mut afl: *mut afl_state_t) {
    let mut fn_0: [u8_0; 4096] = [0; 4096];
    let mut fd: s32 = 0;
    let mut f: *mut FILE = 0 as *mut FILE;
    let mut val_buf: [u8_0; 16] = [0; 16];
    sprintf(fn_0.as_mut_ptr() as *mut libc::c_char,
            b"%s/crashes/README.txt\x00" as *const u8 as *const libc::c_char,
            (*afl).out_dir);
    fd =
        open(fn_0.as_mut_ptr() as *const libc::c_char,
             0o1 as libc::c_int | 0o100 as libc::c_int | 0o200 as libc::c_int,
             0o600 as libc::c_int);
    /* Do not die on errors here - that would be impolite. */
    if fd < 0 as libc::c_int { return } /* ignore errors */
    f = fdopen(fd, b"w\x00" as *const u8 as *const libc::c_char);
    if f.is_null() { close(fd); return }
    fprintf(f,
            b"Command line used to find this crash:\n\n%s\n\nIf you can\'t reproduce a bug outside of afl-fuzz, be sure to set the same\nmemory limit. The limit used for this fuzzing session was %s.\n\nNeed a tool to minimize test cases before investigating the crashes or sending\nthem to a vendor? Check out the afl-tmin that comes with the fuzzer!\n\nFound any cool bugs in open-source tools using afl-fuzz? If yes, please drop\nan mail at <afl-users@googlegroups.com> once the issues are fixed\n\n  https://github.com/AFLplusplus/AFLplusplus\n\n\x00"
                as *const u8 as *const libc::c_char, (*afl).orig_cmdline,
            stringify_mem_size(val_buf.as_mut_ptr(),
                               ::std::mem::size_of::<[u8_0; 16]>() as
                                   libc::c_ulong,
                               (*afl).fsrv.mem_limit << 20 as libc::c_int));
    fclose(f);
}
/* Write a message accompanying the crash directory :-) */
Write a message accompanying the crash directory :-)
Write a message accompanying the crash directory : - )
unsafe extern "C" fn write_crash_readme(mut afl: *mut afl_state_t) {
    let mut fn_0: [u8_0; 4096] = [0; 4096];
    let mut fd: s32 = 0;
    let mut f: *mut FILE = 0 as *mut FILE;
    let mut val_buf: [u8_0; 16] = [0; 16];
    sprintf(fn_0.as_mut_ptr() as *mut libc::c_char,
            b"%s/crashes/README.txt\x00" as *const u8 as *const libc::c_char,
            (*afl).out_dir);
    fd =
        open(fn_0.as_mut_ptr() as *const libc::c_char,
             0o1 as libc::c_int | 0o100 as libc::c_int | 0o200 as libc::c_int,
             0o600 as libc::c_int);
    /* Do not die on errors here - that would be impolite. */
    if fd < 0 as libc::c_int { return } /* ignore errors */
    f = fdopen(fd, b"w\x00" as *const u8 as *const libc::c_char);
    if f.is_null() { close(fd); return }
    fprintf(f,
            b"Command line used to find this crash:\n\n%s\n\nIf you can\'t reproduce a bug outside of afl-fuzz, be sure to set the same\nmemory limit. The limit used for this fuzzing session was %s.\n\nNeed a tool to minimize test cases before investigating the crashes or sending\nthem to a vendor? Check out the afl-tmin that comes with the fuzzer!\n\nFound any cool bugs in open-source tools using afl-fuzz? If yes, please drop\nan mail at <afl-users@googlegroups.com> once the issues are fixed\n\n  https://github.com/AFLplusplus/AFLplusplus\n\n\x00"
                as *const u8 as *const libc::c_char, (*afl).orig_cmdline,
            stringify_mem_size(val_buf.as_mut_ptr(),
                               ::std::mem::size_of::<[u8_0; 16]>() as
                                   libc::c_ulong,
                               (*afl).fsrv.mem_limit << 20 as libc::c_int));
    fclose(f);
}
unsafe extern " " fn write_crash_readme ( mut afl : * mut afl_state_t ) { let mut fn_0 : [ u8_0 ; 4096 ] = [ 0 ; 4096 ] ; let mut fd : s32 = 0 ; let mut f : * mut FILE = 0 as * mut FILE ; let mut val_buf : [ u8_0 ; 16 ] = [ 0 ; 16 ] ; sprintf ( fn_0 . as_mut_ptr ( ) as * mut libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , ( * afl ) . out_dir ) ; fd = open ( fn_0 . as_mut_ptr ( ) as * const libc :: c_char , 0o1 as libc :: c_int | 0o100 as libc :: c_int | 0o200 as libc :: c_int , 0o600 as libc :: c_int ) ; /* Do not die on errors here - that would be impolite. */ if fd < 0 as libc :: c_int { return } /* ignore errors */ f = fdopen ( fd , b" \x00 " as * const u8 as * const libc :: c_char ) ; if f . is_null ( ) { close ( fd ) ; return } fprintf ( f , b" \n \n \n \n \' \n \n \n \n \n \n \n \n \n \n \n \x00 " as * const u8 as * const libc :: c_char , ( * afl ) . orig_cmdline , stringify_mem_size ( val_buf . as_mut_ptr ( ) , :: std :: mem :: size_of :: < [ u8_0 ; 16 ] > ( ) as libc :: c_ulong , ( * afl ) . fsrv . mem_limit << 20 as libc :: c_int ) ) ; fclose ( f ) ; }
Write a message accompanying the crash directory :-)
Write a message accompanying the crash directory : - )
afl
*mut afl_state_t
afl
*mut afl_state_t