mirror of
				https://github.com/bblanchon/ArduinoJson.git
				synced 2025-11-04 00:21:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			284 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			284 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include <ArduinoJson.h>
 | 
						|
 | 
						|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
 | 
						|
  DynamicJsonDocument doc;
 | 
						|
  DeserializationError error = deserializeMsgPack(doc, data, size);
 | 
						|
  if (!error) {
 | 
						|
    std::string json;
 | 
						|
    serializeMsgPack(doc, json);
 | 
						|
  }
 | 
						|
  return 0;
 | 
						|
}
 |