]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* include/grub/misc.h (grub_strtol): Fix overflow.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Dec 2013 13:35:46 +0000 (14:35 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Dec 2013 13:35:46 +0000 (14:35 +0100)
ChangeLog
include/grub/misc.h

index 35725ef4fe14897577fb10b3ec331d6e8fdec6e1..1f97624d6c991bfa46caea09b8886da3a5fe936d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * include/grub/misc.h (grub_strtol): Fix overflow.
+
 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
index af8e404800f52dbf0e9f9f1a329cf9c81980dddf..2cf74b550065c3c3368b907b47411aa9319d0730 100644 (file)
@@ -296,7 +296,7 @@ static inline long
 grub_strtol (const char *str, char **end, int base)
 {
   int negative = 0;
-  unsigned long magnitude;
+  unsigned long long magnitude;
 
   while (*str && grub_isspace (*str))
     str++;