You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
336 B
17 lines
336 B
4 months ago
|
// Function not intercepted on android.
|
||
|
// UNSUPPORTED: android
|
||
|
|
||
|
// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
#include <wchar.h>
|
||
|
|
||
|
int main() {
|
||
|
char *buff = (char*) malloc(MB_CUR_MAX);
|
||
|
free(buff);
|
||
|
wcrtomb(buff, L'a', NULL);
|
||
|
// CHECK: use-after-free
|
||
|
// CHECK: SUMMARY
|
||
|
return 0;
|
||
|
}
|