forked from OSchip/llvm-project
parent
c52eeed310
commit
e2367d2508
|
@ -0,0 +1,9 @@
|
|||
struct FILE;
|
||||
extern int vfprintf(struct FILE *s, const char *format, __builtin_va_list arg);
|
||||
extern int vprintf(const char *format, __builtin_va_list arg);
|
||||
|
||||
extern __inline __attribute__((gnu_inline,always_inline)) int
|
||||
vprintf(const char *x, __builtin_va_list y)
|
||||
{
|
||||
return vfprintf (0, 0, 0);
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
// RUN: %clang_cc1 -nostdsysteminc -nobuiltininc -isystem Inputs -emit-llvm-only %s
|
||||
|
||||
// This used to cause a read past the end of a global variable.
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void testcase(void) {
|
||||
vprintf(0, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue