cJSON
[Ported from github.com/DaveGamble/cJSON] Fix: heap-use-after-free in merge_patch when patch is subtree of target (#1065)
Brought by drakestapleton
cJSON / tests / unity / test / testdata / cmock.h
| 1 | #ifndef CMOCK_H |
| 2 | #define CMOCK_H |
| 3 | |
| 4 | int CMockMemFreeFinalCounter = 0; |
| 5 | int mockMock_Init_Counter = 0; |
| 6 | int mockMock_Verify_Counter = 0; |
| 7 | int mockMock_Destroy_Counter = 0; |
| 8 | |
| 9 | void CMock_Guts_MemFreeFinal(void) { CMockMemFreeFinalCounter++; } |
| 10 | void mockMock_Init(void) { mockMock_Init_Counter++; } |
| 11 | void mockMock_Verify(void) { mockMock_Verify_Counter++; } |
| 12 | void mockMock_Destroy(void) { mockMock_Destroy_Counter++; } |
| 13 | |
| 14 | #endif //CMOCK_H |