Skip to content

Commit

Permalink
PR for Issue #1219 (#1242)
Browse files Browse the repository at this point in the history
* Fix overflowing instruction count in pyPANDA

Updated rr_get_guest_instr_count_external() in panda_api to return uint64_t to fix an overflow issue in pyPANDA.

* Fix instruction count overflow in pyPANDA

Updated rr_get_guest_instr_count_external() in panda_api to return uint64_t to fix an overflow issue in pyPANDA.
  • Loading branch information
wpence committed Nov 11, 2022
1 parent f7b27a1 commit c8de219
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panda/include/panda/panda_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void panda_register_callback_helper(void* plugin, panda_cb_type type, panda_cb*
void panda_enable_callback_helper(void *plugin, panda_cb_type, panda_cb* cb);
void panda_disable_callback_helper(void *plugin, panda_cb_type, panda_cb* cb);

int rr_get_guest_instr_count_external(void);
uint64_t rr_get_guest_instr_count_external(void);

int panda_virtual_memory_read_external(CPUState *env, target_ulong addr, char *buf, int len);
int panda_virtual_memory_write_external(CPUState *env, target_ulong addr, char *buf, int len);
Expand Down
2 changes: 1 addition & 1 deletion panda/src/panda_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void panda_disable_callback_helper(void *plugin, panda_cb_type type, panda_cb* c

//int panda_replay(char *replay_name) -> Now use panda_replay_being(char * replay_name)

int rr_get_guest_instr_count_external(void){
uint64_t rr_get_guest_instr_count_external(void){
return rr_get_guest_instr_count();
}

Expand Down

0 comments on commit c8de219

Please sign in to comment.