diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-04-25 22:46:48 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-04-25 22:46:48 +0300 |
commit | 7ec85f3e089aa423a69559bf4555b6218b5a2ef7 (patch) | |
tree | 962f8ecccc876a1ad757bc1080bd4ffd8751e33b /lib | |
parent | df45da57cbd35715d590a36a12968a94508ccd1f (diff) | |
parent | bee43904dc774b35bb159693ff3f3ff222590bb1 (diff) | |
download | linux-7ec85f3e089aa423a69559bf4555b6218b5a2ef7.tar.xz |
Merge tag 'printk-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux
Pull printk updates from Petr Mladek:
- Code cleanup and dead code removal
* tag 'printk-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
printk: Remove obsoleted check for non-existent "user" object
lib/vsprintf: Use isodigit() for the octal number check
Remove orphaned CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vsprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index be71a03c936a..426418253fd4 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -3621,7 +3621,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args) if (!digit || (base == 16 && !isxdigit(digit)) || (base == 10 && !isdigit(digit)) - || (base == 8 && (!isdigit(digit) || digit > '7')) + || (base == 8 && !isodigit(digit)) || (base == 0 && !isdigit(digit))) break; |