[all-commits] [llvm/llvm-project] 88b801: [libc] add integer writing to printf

michaelrj-google via All-commits all-commits at lists.llvm.org
Tue Jun 28 14:01:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88b801392c9378abf26c4bb0eb3bd6a3bacdada7
      https://github.com/llvm/llvm-project/commit/88b801392c9378abf26c4bb0eb3bd6a3bacdada7
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-06-28 (Tue, 28 Jun 2022)

  Changed paths:
    M libc/src/stdio/printf_core/CMakeLists.txt
    M libc/src/stdio/printf_core/converter.cpp
    M libc/src/stdio/printf_core/converter_atlas.h
    M libc/src/stdio/printf_core/parser.cpp
    A libc/src/stdio/printf_core/write_int_converter.h
    M libc/test/src/stdio/sprintf_test.cpp

  Log Message:
  -----------
  [libc] add integer writing to printf

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.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D127517




More information about the All-commits mailing list