Browse Source

Fuzzer: Remove some debug output

Stefan Profanter 5 years ago
parent
commit
cb345cdda5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/fuzz/custom_memory_manager.c

+ 2 - 2
tests/fuzz/custom_memory_manager.c

@@ -41,7 +41,7 @@ struct UA_mm_entry *address_map_last = NULL;
 
 void UA_memoryManager_setLimit(unsigned long long newLimit) {
     memoryLimit = newLimit;
-    printf("MemoryManager: Setting memory limit to %lld\n", newLimit);
+    //printf("MemoryManager: Setting memory limit to %lld\n", newLimit);
 }
 
 int UA_memoryManager_setLimitFromLast4Bytes(const uint8_t *data, size_t size) {
@@ -63,7 +63,7 @@ int UA_memoryManager_setLimitFromLast4Bytes(const uint8_t *data, size_t size) {
 static int addToMap(size_t size, void *addr) {
     struct UA_mm_entry *newEntry = (struct UA_mm_entry*)malloc(sizeof(struct UA_mm_entry));
     if (!newEntry) {
-        printf("MemoryManager: Could not allocate memory");
+        //printf("MemoryManager: Could not allocate memory");
         return 0;
     }
     newEntry->size = size;