From 0d4aa91d0d0c2c4f48e700ce00dc84ac494d3ea0 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sat, 21 Dec 2013 14:35:46 +0100 Subject: [PATCH] * include/grub/misc.h (grub_strtol): Fix overflow. --- ChangeLog | 4 ++++ include/grub/misc.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 35725ef4f..1f97624d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-12-21 Vladimir Serbinenko + + * include/grub/misc.h (grub_strtol): Fix overflow. + 2013-12-21 Vladimir Serbinenko * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t diff --git a/include/grub/misc.h b/include/grub/misc.h index af8e40480..2cf74b550 100644 --- a/include/grub/misc.h +++ b/include/grub/misc.h @@ -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++;