return success from snapshots
This commit is contained in:
parent
9658746a0c
commit
5288d4210f
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,3 +18,4 @@ GTAGS
|
||||
.ccls*
|
||||
.direnv
|
||||
.vscode
|
||||
.cache
|
||||
|
@ -57,8 +57,8 @@ void libafl_qemu_cleanup( void );
|
||||
void libafl_qemu_sys_init(int argc, char **argv, char **envp) { qemu_init(argc, argv, envp); }
|
||||
void libafl_qemu_cleanup( void ) { qemu_cleanup(); }
|
||||
void libafl_qemu_set_breakpoint( vaddr );
|
||||
void libafl_snapshot_save( const char* );
|
||||
void libafl_snapshot_load( const char* );
|
||||
int libafl_snapshot_save( const char* );
|
||||
int libafl_snapshot_load( const char* );
|
||||
void libafl_phys_read(vaddr, uint8_t*, int);
|
||||
void libafl_phys_write(vaddr, uint8_t*, int);
|
||||
|
||||
@ -76,16 +76,18 @@ void libafl_qemu_set_breakpoint(vaddr pc)
|
||||
}
|
||||
}
|
||||
|
||||
void libafl_snapshot_save( const char* name )
|
||||
int libafl_snapshot_save( const char* name )
|
||||
{
|
||||
Error *err = NULL;
|
||||
save_snapshot(name, true, NULL, false, NULL, &err);
|
||||
return err == 0;
|
||||
}
|
||||
|
||||
void libafl_snapshot_load( const char* name )
|
||||
int libafl_snapshot_load( const char* name )
|
||||
{
|
||||
Error *err = NULL;
|
||||
load_snapshot(name, NULL, false, NULL, &err);
|
||||
return err == 0;
|
||||
}
|
||||
|
||||
void libafl_phys_read(vaddr addr, uint8_t* buf, int len)
|
||||
|
Loading…
x
Reference in New Issue
Block a user