[PATCH] D87375: [compiler-rt] Support glibc's non-standard I printf flag character
Stephan Bergmann via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 06:03:21 PDT 2020
sberg created this revision.
sberg added reviewers: eugenis, samsonov.
Herald added subscribers: Sanitizers, dberris.
Herald added a project: Sanitizers.
sberg requested review of this revision.
(see https://sourceware.org/git/?p=glibc.git;a=commit;h=4295702fe36902ad82587748b918d828ce62c446 "[...] stdio-common/vfprintf.c: Implement 'I' flag to print using locales' outdigits." for a source)
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87375
Files:
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
Index: compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
+++ compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
@@ -407,7 +407,7 @@
p = maybe_parse_param_index(p, &dir->precisionIdx);
CHECK(p);
// Flags
- while (char_is_one_of(*p, "'-+ #0")) {
+ while (char_is_one_of(*p, "'-+ #0I")) {
++p;
}
// Field width
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87375.290722.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200909/45b28948/attachment.bin>
More information about the llvm-commits
mailing list