[all-commits] [llvm/llvm-project] 47fb6d: [libc] add mock arg list

michaelrj-google via All-commits all-commits at lists.llvm.org
Fri Feb 17 11:18:54 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47fb6d1c65ec227bc3728c401a26d26997b8bcb6
      https://github.com/llvm/llvm-project/commit/47fb6d1c65ec227bc3728c401a26d26997b8bcb6
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-02-17 (Fri, 17 Feb 2023)

  Changed paths:
    M libc/src/__support/arg_list.h
    M libc/src/stdio/printf_core/parser.h

  Log Message:
  -----------
  [libc] add mock arg list

For testing purposes we need to be able to mock out the ArgList class.
This patch adds a mock version of that class as well as a flag to enable
it.

Reviewed By: sivachandra

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


  Commit: f6b724f1f9c8d8019b8a425b6fb52e1cf6fc0215
      https://github.com/llvm/llvm-project/commit/f6b724f1f9c8d8019b8a425b6fb52e1cf6fc0215
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-02-17 (Fri, 17 Feb 2023)

  Changed paths:
    M libc/fuzzing/CMakeLists.txt
    A libc/fuzzing/stdio/CMakeLists.txt
    A libc/fuzzing/stdio/printf_parser_fuzz.cpp
    M libc/src/stdio/printf_core/CMakeLists.txt

  Log Message:
  -----------
  [libc] Add basic fuzz target for the printf parser

The goal is to fuzz the entirety of printf, but the plan is to do it in
pieces for simplicity. This test fuzzes just the parser, while later
tests will fuzz the converters. This also adds a mock version of the
arg_list class.

Reviewed By: sivachandra

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


Compare: https://github.com/llvm/llvm-project/compare/5fa9933c13e7...f6b724f1f9c8


More information about the All-commits mailing list