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

Evgenii Stepanov via All-commits all-commits at lists.llvm.org
Mon Jan 6 15:07:15 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b5e7f95cfbeb28ff8b966a2b7e38a03f32410030
      https://github.com/llvm/llvm-project/commit/b5e7f95cfbeb28ff8b966a2b7e38a03f32410030
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2020-01-06 (Mon, 06 Jan 2020)

  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