[all-commits] [llvm/llvm-project] ddf897: [msan] Check qsort input.

Evgenii Stepanov via All-commits all-commits at lists.llvm.org
Fri Dec 20 12:42:18 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ddf897fc80499ece298bc33201db6b697d2af50e
      https://github.com/llvm/llvm-project/commit/ddf897fc80499ece298bc33201db6b697d2af50e
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2019-12-20 (Fri, 20 Dec 2019)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
    M compiler-rt/test/msan/qsort.cpp

  Log Message:
  -----------
  [msan] Check qsort input.

Summary:
Qsort interceptor suppresses all checks by unpoisoning the data in the
wrapper of a comparator function, and then unpoisoning the output array
as well.

This change adds an explicit run of the comparator on all elements of
the input array to catch any sanitizer bugs.

Reviewers: vitalybuka

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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




More information about the All-commits mailing list