[all-commits] [llvm/llvm-project] 44ad67: [clang][msan] Turn on -fsanitize-memory-param-retv...

aeubanks via All-commits all-commits at lists.llvm.org
Wed Sep 28 09:37:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44ad67031cc1a10483337f8b1f728e2be237685e
      https://github.com/llvm/llvm-project/commit/44ad67031cc1a10483337f8b1f728e2be237685e
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Driver/SanitizerArgs.h
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/test/CodeGen/kmsan-param-retval.c
    M clang/test/CodeGen/msan-param-retval.c
    M clang/test/Driver/fsanitize-memory-param-retval.c

  Log Message:
  -----------
  [clang][msan] Turn on -fsanitize-memory-param-retval by default

This eagerly reports use of undef values when passed to noundef
parameters or returned from noundef functions.

This also decreases binary sizes under msan.

To go back to the previous behavior, pass `-fno-sanitize-memory-param-retval`.

Reviewed By: vitalybuka, MaskRay

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




More information about the All-commits mailing list