hackedteam/fuzzer-android

View on GitHub
dbi/instruments/logblow/hijack_func/old/phDal4Nfc_uart_read.h

Summary

Maintainability
Test Coverage
int my_phDal4Nfc_uart_read(unsigned char *pBuffer, int nNbBytesToRead);

struct hook_t hook_phDal4Nfc_uart_read;

struct special_phDal4Nfc_uart_read_t {
    //pphLibNfc_RspCb_t orig_cb;
    //pphLibNfc_RspCb_t my_cb;
} special_phDal4Nfc_uart_read;

#define HOOK_phDal4Nfc_uart_read \
hook(&hook_phDal4Nfc_uart_read, pid, "libnfc", "phDal4Nfc_uart_read", my_phDal4Nfc_uart_read);\
hook_phDal4Nfc_uart_read.data = &special_phDal4Nfc_uart_read;\
memset((char*)&special_phDal4Nfc_uart_read, 0, sizeof(special_phDal4Nfc_uart_read));