You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			442 B
		
	
	
	
		
			C++
		
	
			
		
		
	
	
			24 lines
		
	
	
		
			442 B
		
	
	
	
		
			C++
		
	
#include "playlist/cue/CueParser.hxx"
 | 
						|
#include "util/IterableSplitString.hxx"
 | 
						|
 | 
						|
extern "C" {
 | 
						|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
 | 
						|
}
 | 
						|
 | 
						|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
 | 
						|
{
 | 
						|
	CueParser parser;
 | 
						|
 | 
						|
	const std::string_view src{(const char *)data, size};
 | 
						|
 | 
						|
	for (const auto line : IterableSplitString(src, '\n')) {
 | 
						|
		parser.Feed(line);
 | 
						|
		parser.Get();
 | 
						|
	}
 | 
						|
 | 
						|
	parser.Finish();
 | 
						|
	parser.Get();
 | 
						|
 | 
						|
	return 0;
 | 
						|
}
 |