* include/grub/misc.h (grub_strtol): Fix overflow.

This commit is contained in:
Vladimir Serbinenko 2013-12-21 14:35:46 +01:00
parent a997af68e3
commit 0d4aa91d0d
2 changed files with 5 additions and 1 deletions

View file

@ -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> 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t

View file

@ -296,7 +296,7 @@ static inline long
grub_strtol (const char *str, char **end, int base) grub_strtol (const char *str, char **end, int base)
{ {
int negative = 0; int negative = 0;
unsigned long magnitude; unsigned long long magnitude;
while (*str && grub_isspace (*str)) while (*str && grub_isspace (*str))
str++; str++;