mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Add fuzzer for termin_input_parser
Current state: the fuzzer find interesting input immediately... ``` terminate called after throwing an instance of 'std::range_error' what(): wstring_convert::from_bytes ``` See: https://github.com/ArthurSonzogni/FTXUI/issues/118
This commit is contained in:
		 ArthurSonzogni
					ArthurSonzogni
				
			
				
					committed by
					
						 Arthur Sonzogni
						Arthur Sonzogni
					
				
			
			
				
	
			
			
			 Arthur Sonzogni
						Arthur Sonzogni
					
				
			
						parent
						
							3d5e4eb6ca
						
					
				
				
					commit
					986ea2b37e
				
			| @@ -70,6 +70,7 @@ class ReceiverImpl { | ||||
|     senders_++; | ||||
|     return std::unique_ptr<SenderImpl<T>>(new SenderImpl<T>(this)); | ||||
|   } | ||||
|   ReceiverImpl() { senders_ = 0; } | ||||
|  | ||||
|   bool Receive(T* t) { | ||||
|     while (senders_ || !queue_.empty()) { | ||||
| @@ -109,7 +110,7 @@ class ReceiverImpl { | ||||
|   std::mutex mutex_; | ||||
|   std::queue<T> queue_; | ||||
|   std::condition_variable notifier_; | ||||
|   std::atomic<int> senders_ = 0; | ||||
|   std::atomic<int> senders_; | ||||
| }; | ||||
|  | ||||
| template <class T> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user