File CVE-2013-0420.diff of Package virtualbox.1250

Index: VirtualBox-4.1.22/src/VBox/Devices/Graphics/DevVGA.cpp
===================================================================
--- VirtualBox-4.1.22.orig/src/VBox/Devices/Graphics/DevVGA.cpp
+++ VirtualBox-4.1.22/src/VBox/Devices/Graphics/DevVGA.cpp
@@ -1795,7 +1795,7 @@ static int vga_draw_text(VGAState *s, in
     cx_max_upd = -1;
     cx_min_upd = width;
 
-    for(cy = 0; cy < height; cy = cy + (1 << dscan)) {
+    for(cy = 0; cy < (height - dscan); cy = cy + (1 << dscan)) {
         d1 = dest;
         src = s1;
         cx_min = width;
openSUSE Build Service is sponsored by