[all-commits] [llvm/llvm-project] 430ca1: [libc][obvious] fix tests using wrong size for string

michaelrj-google via All-commits all-commits at lists.llvm.org
Mon Nov 7 14:04:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 430ca14af835a4d8ea927ed6550a99242bebf255
      https://github.com/llvm/llvm-project/commit/430ca14af835a4d8ea927ed6550a99242bebf255
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M libc/test/src/stdio/scanf_core/string_reader_test.cpp

  Log Message:
  -----------
  [libc][obvious] fix tests using wrong size for string

In the code
const char *str = "abc"
if you do sizeof(str) you get the size of the pointer, not the string.
This patch fixes that mistake.

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




More information about the All-commits mailing list