[libc-commits] [PATCH] D127517: [libc] add integer writing to printf

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jun 10 11:24:30 PDT 2022


michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

This patch adds %n to printf, as well as a compiler flag to disable it.
This is due to it having serious security issues when misused.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127517

Files:
  libc/src/stdio/printf_core/CMakeLists.txt
  libc/src/stdio/printf_core/converter.cpp
  libc/src/stdio/printf_core/converter_atlas.h
  libc/src/stdio/printf_core/parser.cpp
  libc/src/stdio/printf_core/write_int_converter.h
  libc/test/src/stdio/sprintf_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127517.435987.patch
Type: text/x-patch
Size: 6070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220610/642f16ba/attachment.bin>


More information about the libc-commits mailing list