]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vsprintf: add simple_strntoul
authorDavid Disseldorp <ddiss@suse.de>
Tue, 4 Mar 2025 05:57:46 +0000 (16:57 +1100)
committerChristian Brauner <brauner@kernel.org>
Sat, 8 Mar 2025 11:13:25 +0000 (12:13 +0100)
commitfcc155008a20fa31b01569e105250490750f0687
treedea8dd360875da10c7ffced37e7daccafae0adfd
parent83c0b27266ecfe8366d849be77ff6ff8f702ffed
vsprintf: add simple_strntoul

cpio extraction currently does a memcpy to ensure that the archive hex
fields are null terminated for simple_strtoul(). simple_strntoul() will
allow us to avoid the memcpy.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Link: https://lore.kernel.org/r/20250304061020.9815-4-ddiss@suse.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/kstrtox.h
lib/vsprintf.c