* include/grub/misc.h (grub_strtol): Fix overflow.
This commit is contained in:
parent
a997af68e3
commit
0d4aa91d0d
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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++;
|
||||||
|
|
Loading…
Reference in a new issue