mirror of
				https://git.proxmox.com/git/grub2
				synced 2025-11-04 03:55:15 +00:00 
			
		
		
		
	* grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
resulted in leak of arguments.
This commit is contained in:
		
							parent
							
								
									fa6ec5734f
								
							
						
					
					
						commit
						3809cb41bc
					
				@ -1,3 +1,8 @@
 | 
			
		||||
2012-02-29  Andreas Vogel <anvoit>
 | 
			
		||||
 | 
			
		||||
	* grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
 | 
			
		||||
	resulted in leak of arguments.
 | 
			
		||||
 | 
			
		||||
2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* grub-core/boot/i386/pc/startup_raw.S: Use separate
 | 
			
		||||
 | 
			
		||||
@ -1060,11 +1060,12 @@ grub_xvasprintf (const char *fmt, va_list ap)
 | 
			
		||||
  while (1)
 | 
			
		||||
    {
 | 
			
		||||
      va_list ap2;
 | 
			
		||||
      va_copy (ap2, ap);
 | 
			
		||||
      ret = grub_malloc (as + 1);
 | 
			
		||||
      if (!ret)
 | 
			
		||||
	return NULL;
 | 
			
		||||
 | 
			
		||||
      va_copy (ap2, ap);
 | 
			
		||||
 | 
			
		||||
      s = grub_vsnprintf_real (ret, as, fmt, ap2);
 | 
			
		||||
 | 
			
		||||
      va_end (ap2);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user