 Luiz Capitulino
		
	
	
		1f9296b51a
		
	
	
	
	virtio-balloon: fix integer overflow in memory stats feature
			Luiz Capitulino
		
	
	
		1f9296b51a
		
	
	
	
	virtio-balloon: fix integer overflow in memory stats feature
		
			
			When a QMP client changes the polling interval time by setting the guest-stats-polling-interval property, the interval value is stored and manipulated as an int64_t variable. However, the balloon_stats_change_timer() function, which is used to set the actual timer with the interval value, takes an int instead, causing an overflow for big interval values. This commit fix this bug by changing balloon_stats_change_timer() to take an int64_t and also it limits the polling interval value to UINT_MAX to avoid other kinds of overflow. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
				
					… 
				
			
			
		Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org - QEMU team
Description
				
					Languages
				
				
								
								
									C
								
								83%
							
						
							
								
								
									C++
								
								7.7%
							
						
							
								
								
									Python
								
								3%
							
						
							
								
								
									Dylan
								
								2.2%
							
						
							
								
								
									Shell
								
								1.8%
							
						
							
								
								
									Other
								
								2.1%