A new user interface for you! Read more...

File virtualbox-snpritnf-buffer-overflow.patch of Package virtualbox

diff -urN VirtualBox-5.0.0.old/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_printf.c VirtualBox-5.0.0/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_printf.c
--- VirtualBox-5.0.0.old/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_printf.c	2015-07-14 20:53:12.121479325 +0200
+++ VirtualBox-5.0.0/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_printf.c	2015-07-19 17:11:11.677617929 +0200
@@ -1568,10 +1568,10 @@
 			width = 0;
 
 		if (width != 0)
-			f += snprintf(f, sizeof (format), "%d", ABS(width));
+			f += snprintf(f, sizeof (f), "%d", ABS(width));
 
 		if (prec > 0)
-			f += snprintf(f, sizeof (format), ".%d", prec);
+			f += snprintf(f, sizeof (f), ".%d", prec);
 
 		(void) strcpy(f, pfd->pfd_fmt);
 		pfd->pfd_rec = rec;
diff -urN VirtualBox-5.0.0.old/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c VirtualBox-5.0.0/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c
--- VirtualBox-5.0.0.old/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c	2015-07-14 20:53:12.120479323 +0200
+++ VirtualBox-5.0.0/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c	2015-07-19 17:12:35.554945664 +0200
@@ -866,6 +866,7 @@
 	x = x + (x >> 32);
 	return (x & 0x7F);
 #endif
+	return 0;
 }
 
 /*