grub2: bump to 2.04
[openwrt/staging/chunkeey.git] / package / boot / grub2 / patches / 300-CVE-2015-8370.patch
index eb7919639a895e1da9dc42410c9a07a31d22a073..22f6c90928adffc1f7bcd06720f8753f02d1f13d 100644 (file)
@@ -33,8 +33,8 @@ Signed-off-by: Ismael Ripoll-Ripoll <iripoll@disca.upv.es>
          break;
        }
  
--      if (key == '\b')
-+      if (key == '\b' && cur_len)
+-      if (key == GRUB_TERM_BACKSPACE)
++      if (key == GRUB_TERM_BACKSPACE && cur_len)
        {
          if (cur_len)
            {