mock_san.cpp 747 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <stddef.h>
  2. #include <stdio.h>
  3. #ifndef Y_UNUSED
  4. #define Y_UNUSED(var) (void)(var)
  5. #endif
  6. static class Informer {
  7. public:
  8. Informer() {
  9. fprintf(stderr, "WARNING: Binary built without instrumentation module"
  10. " - see https://docs.yandex-team.ru/ya-make/manual/tests/fuzzing for proper build command\n");
  11. fflush(stderr);
  12. }
  13. } informer;
  14. extern "C" {
  15. void __sanitizer_set_death_callback(void (*callback)(void)) {
  16. Y_UNUSED(callback);
  17. }
  18. void __sanitizer_reset_coverage(void) {
  19. }
  20. void __sanitizer_update_counter_bitset_and_clear_counters(size_t) {
  21. }
  22. size_t __sanitizer_get_number_of_counters(void) {
  23. return 0;
  24. }
  25. size_t __sanitizer_get_total_unique_coverage(void) {
  26. return 0;
  27. }
  28. } // extern "C"