commit-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[2432] 2009-07-20 Vladimir Serbinenko <address@hidden>


From: Vladimir Serbinenko
Subject: [2432] 2009-07-20 Vladimir Serbinenko <address@hidden>
Date: Mon, 20 Jul 2009 17:37:38 +0000

Revision: 2432
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2432
Author:   phcoder
Date:     2009-07-20 17:37:37 +0000 (Mon, 20 Jul 2009)
Log Message:
-----------
2009-07-20  Vladimir Serbinenko  <address@hidden>

        * font/font.c (find_glyph): Check whether a font is present to avoid
        segmentation fault.
        

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/font/font.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-07-20 16:46:36 UTC (rev 2431)
+++ trunk/grub2/ChangeLog       2009-07-20 17:37:37 UTC (rev 2432)
@@ -1,3 +1,8 @@
+2009-07-20  Vladimir Serbinenko  <address@hidden>
+
+       * font/font.c (find_glyph): Check whether a font is present to avoid
+       segmentation fault.
+       
 2009-07-20  Joe Auricchio <address@hidden>
 
        * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.

Modified: trunk/grub2/font/font.c
===================================================================
--- trunk/grub2/font/font.c     2009-07-20 16:46:36 UTC (rev 2431)
+++ trunk/grub2/font/font.c     2009-07-20 17:37:37 UTC (rev 2432)
@@ -607,6 +607,9 @@
   lo = 0;
   hi = font->num_chars - 1;
 
+  if (! table)
+    return 0;
+
   while (lo <= hi)
     {
       mid = lo + (hi - lo) / 2;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]