Skip to content

Commit

Permalink
Fix Isan error.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Dec 20, 2024
1 parent f2fa348 commit f695fc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sortchecker.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ static void check_total_order(ErrorContext *ctx, const Comparator *cmp, const ch
}

// Pseudo-randomly shuffle vector to provoke errors in far elements
#ifdef __clang__
// We have intentional unsigned overflow
__attribute__((no_sanitize("integer")))
#endif
static void shuffle(void *data, size_t n, size_t sz) {
size_t i;
for (i = 0; i < n; ++i) {
Expand Down

0 comments on commit f695fc7

Please sign in to comment.