mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-31 07:59:02 -05:00 
			
		
		
		
	Merge pull request #1830 from Subv/vi_ub
Services/VI: Dereferencing an uninitialized std::optional is undefined behavior.
This commit is contained in:
		| @@ -542,6 +542,8 @@ private: | ||||
|                         // Repeat TransactParcel DequeueBuffer when a buffer is available | ||||
|                         auto buffer_queue = nv_flinger->GetBufferQueue(id); | ||||
|                         std::optional<u32> slot = buffer_queue->DequeueBuffer(width, height); | ||||
|                         ASSERT_MSG(slot != std::nullopt, "Could not dequeue buffer."); | ||||
|  | ||||
|                         IGBPDequeueBufferResponseParcel response{*slot}; | ||||
|                         ctx.WriteBuffer(response.Serialize()); | ||||
|                         IPC::ResponseBuilder rb{ctx, 2}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bunnei
					bunnei