[all-commits] [llvm/llvm-project] f6ba35: [libc] Add nullptr check option to printf %s
michaelrj-google via All-commits
all-commits at lists.llvm.org
Mon Aug 7 14:47:23 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f6ba352988b2734cbbd21df98e5e5536d3cad98f
https://github.com/llvm/llvm-project/commit/f6ba352988b2734cbbd21df98e5e5536d3cad98f
Author: Michael Jones <michaelrj at google.com>
Date: 2023-08-07 (Mon, 07 Aug 2023)
Changed paths:
M libc/src/stdio/printf_core/printf_config.h
M libc/src/stdio/printf_core/string_converter.h
M libc/src/stdio/printf_core/write_int_converter.h
M libc/test/src/stdio/sprintf_test.cpp
Log Message:
-----------
[libc] Add nullptr check option to printf %s
Some printf implementations perform a null check on pointers passed to
%s. While that's not in the standard, this patch adds it as an option
for compatibility. It also puts a similar check in %n behind the same
flag.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D156923
More information about the All-commits
mailing list