There are actually overflow bug and typo. And bug was never happened due to the
typo.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
p1++;
} else if (*p1 >= '0' && *p1 <= '7') {
num = (*p1++)&7;
- while (num < 256 && *p1 >= '0' && *p1 <= '7') {
+ while (num < 32 && *p1 >= '0' && *p1 <= '7') {
num <<= 3;
- num = (*p1++)&7;
+ num += (*p1++)&7;
}
*p++ = num;
} else if (*p1 == 'x' &&