]> git.ipfire.org Git - thirdparty/linux.git/commit
lib: add more string to 64-bit integer conversion overflow tests
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 19 May 2026 17:22:54 +0000 (20:22 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 May 2026 04:24:50 +0000 (21:24 -0700)
commitab90fc1007245380988c500ddf7eff6da1b10056
tree1092555d0bca26d99a8a99ea2f195830c1b4b59d
parent9a4580db6e9f83428813f671a79486469684069f
lib: add more string to 64-bit integer conversion overflow tests

Add a few more string to 64-bit integer conversion tests to check whether
'kstrtoull()', 'kstrtoll()', 'kstrtou64()' and 'kstrtos64()' can handle
overflows reported by '_parse_integer_limit()'.

Link: https://lore.kernel.org/20260519172259.908980-4-dmantipov@yandex.ru
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Charlie Jenkins <thecharlesjenkins@gmail.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test-kstrtox.c