Skip to content

Commit

Permalink
[msan] Fix strxfrm test
Browse files Browse the repository at this point in the history
Revert D83719 and explicitly set locate to "C".

(cherry picked from commit 650baf2)
  • Loading branch information
vitalybuka authored and zmodem committed Jul 17, 2020
1 parent 884357e commit b35b720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler-rt/test/msan/strxfrm.cpp
Expand Up @@ -7,12 +7,12 @@
#include <string.h>

int main(void) {
char q[30];
char q[10];
size_t n = strxfrm(q, "abcdef", sizeof(q));
assert(n < sizeof(q));
__msan_check_mem_is_initialized(q, n + 1);

locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
locale_t loc = newlocale(LC_ALL_MASK, "C", (locale_t)0);

__msan_poison(&q, sizeof(q));
n = strxfrm_l(q, "qwerty", sizeof(q), loc);
Expand Down

0 comments on commit b35b720

Please sign in to comment.