/external/clang/test/Sema/ |
D | format-strings-scanf.c | 12 int scanf(const char * restrict, ...) ; 21 scanf(s, i); // expected-warning{{ormat string is not a string literal}} in test() 22 scanf("%0d", i); // expected-warning{{zero field width in scanf format string is unused}} in test() 23 scanf("%00d", i); // expected-warning{{zero field width in scanf format string is unused}} in test() 24 …scanf("%d%[asdfasdfd", i, s); // expected-warning{{no closing ']' for '%[' in scanf format string}} in test() 27 scanf ("%" "hu" "\n", &s_x); // no-warning in test() 28 scanf("%y", i); // expected-warning{{invalid conversion specifier 'y'}} in test() 29 scanf("%%"); // no-warning in test() 30 scanf("%%%1$d", i); // no-warning in test() 31 scanf("%1$d%%", i); // no-warning in test() [all …]
|
D | format-strings-fixit.c | 98 int scanf(char const *, ...); 118 scanf("%lf", str); in test2() 119 scanf("%f", &shortVar); in test2() 120 scanf("%f", &uShortVar); in test2() 121 scanf("%p", &intVar); in test2() 122 scanf("%Lf", &uIntVar); in test2() 123 scanf("%ld", &floatVar); in test2() 124 scanf("%f", &doubleVar); in test2() 125 scanf("%d", &longDoubleVar); in test2() 126 scanf("%f", &longVar); in test2() [all …]
|
D | format-strings-c90.c | 4 int scanf(const char * restrict, ...); 8 scanf("%as", sp); /* expected-warning{{'a' length modifier is not supported by ISO C}} */ in foo() 9 scanf("%a[abc]", sp); /* expected-warning{{'a' length modifier is not supported by ISO C}} */ in foo() 12 scanf("%a", fp); in foo() 13 scanf("%afoobar", fp); in foo() 20 scanf("%da", ip); in foo() 23 …scanf("%as", fp); /* expected-warning{{format specifies type 'char **' but the argument has type '… in foo() 25 …scanf("%aS", fp); /* expected-warning{{format specifies type 'wchar_t **' (aka 'int **') but the a… in foo() 28 …scanf("%a[abc]", fp); /* expected-warning{{format specifies type 'char **' but the argument has ty… in foo()
|
D | format-strings-int-typedefs.c | 4 int scanf(char const *, ...); 16 scanf("%jd", 0); // expected-warning {{format specifies type 'intmax_t *' (aka 'long long *')}} in test() 17 …scanf("%ju", 0); // expected-warning {{format specifies type 'uintmax_t *' (aka 'unsigned long lon… in test() 18 scanf("%zu", 0); // expected-warning {{format specifies type 'size_t *' (aka 'unsigned long *')}} in test() 19 scanf("%td", 0); // expected-warning {{format specifies type 'ptrdiff_t *' (aka 'int *')}} in test() 20 scanf("%lc", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}} in test() 21 scanf("%ls", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}} in test() 22 scanf("%S", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}} in test() 23 scanf("%C", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}} in test()
|
D | format-strings-gnu.c | 10 int scanf(const char * restrict, ...) ; 47 scanf("%Ld", y); // no-warning in scanf_longlong() 48 scanf("%Lu", y); // no-warning in scanf_longlong() 49 scanf("%Lx", y); // no-warning in scanf_longlong() 50 scanf("%Ld", x); // no-warning in scanf_longlong() 51 scanf("%Lu", x); // no-warning in scanf_longlong() 52 scanf("%Lx", x); // no-warning in scanf_longlong() 53 …scanf("%Ls", "hello"); // expected-warning {{length modifier 'L' results in undefined behavior or … in scanf_longlong()
|
D | format-strings-non-iso.c | 4 int scanf(const char * restrict, ...); 11 …scanf("%qd", (long long *)0); // expected-warning{{'q' length modifier is not supported by ISO C}}… in f() 14 scanf("%ms", &cp); // expected-warning{{'m' length modifier is not supported by ISO C}} in f()
|
D | format-strings-no-fixit.c | 11 int scanf(char const *, ...); 37 scanf(kFormat6, i); in pr9751() 38 scanf("%00d", i); in pr9751()
|
/external/clang/test/Analysis/ |
D | taint-generic.c | 3 int scanf(const char *restrict format, ...); 38 scanf("%d", &n); in bufferScanfDirect() 44 scanf("%d", &n); in bufferScanfArithmetic1() 51 scanf("%d", &n); in bufferScanfArithmetic2() 58 scanf("%d", &n); in bufferScanfAssignment() 68 …scanf("%d", t); // expected-warning {{format specifies type 'int *' but the argument has type 'int… in scanfArg() 113 scanf("%s", addr); in testTaintSystemCall() 125 scanf("%s", addr); in testTaintSystemCall2() 134 scanf("%s %d", addr, &numt); in testTaintSystemCall3() 141 scanf("%zd", &ts); in testTaintedBufferSize() [all …]
|
D | taint-tester.c | 5 int scanf(const char *restrict format, ...); 21 scanf("%d", &n); in taintTracking() 35 scanf("%p", &ptr); in taintTracking() 47 scanf("%p", &xyPtr); in taintTracking() 55 scanf("%d", &xy.y); in taintTracking() 56 scanf("%d", &xy.x); in taintTracking() 61 scanf("%d %d", &xy.y, &xy.x); in taintTracking() 70 scanf("%d", &x); in BitwiseOp() 193 scanf("%s", s); in atoiTest()
|
D | string.c | 32 int scanf(const char *restrict format, ...); 420 scanf("%s", dst); // Taint data. in strcat_symbolic_dst_length_taint()
|
/external/clang/test/SemaCXX/ |
D | format-strings.cpp | 6 extern int scanf(const char *restrict, ...); 12 scanf("%as", sp); // expected-warning{{'a' length modifier is not supported by ISO C}} in f() 16 scanf("%afoobar", fp); in f() 28 int scanf(const char *, ...) __attribute__((format(scanf, 2, 3))); 38 foo.scanf("%d"); // expected-warning{{more '%' conversions than data arguments}} in h()
|
D | format-strings-0x.cpp | 4 extern int scanf(const char *restrict, ...); 9 …scanf("%as", sp); // expected-warning{{format specifies type 'float *' but the argument has type '… in f() 12 scanf("%afoobar", fp); in f()
|
/external/genext2fs/m4/ |
D | ac_func_scanf_can_malloc.m4 | 12 AC_CACHE_CHECK([whether scanf can malloc], [ac_scanf_can_malloc], 51 …AC_DEFINE([SCANF_CAN_MALLOC], 1, [Define to 1 if the scanf %a conversion format mallocs a buffer. …
|
/external/aac/libSYS/include/ |
D | cmdl_parser.h | 157 #define _tscanf scanf
|
/external/kernel-headers/original/linux/ |
D | kernel.h | 126 __attribute__ ((format (scanf, 2, 3))); 128 __attribute__ ((format (scanf, 2, 0)));
|
/external/stlport/stlport/stl/ |
D | _cstdio.h | 111 using _STLP_VENDOR_CSTD::scanf;
|
/external/libxslt/libxslt/ |
D | trio.h | 182 # define scanf trio_scanf macro
|
/external/libxml2/ |
D | trio.h | 182 # define scanf trio_scanf macro
|
/external/icu4c/test/testdata/ |
D | icuio.txt | 119 scanf {
|
/external/genext2fs/ |
D | config.h.in | 107 /* Define to 1 if the scanf %a conversion format mallocs a buffer. Undefine if
|
/external/zlib/src/contrib/minizip/ |
D | minizip.c | 352 ret = scanf("%1s",answer);
|
D | miniunz.c | 390 ret = scanf("%1s",answer);
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 452 GV.IntVal = APInt(32, scanf( Args[0], Args[1], Args[2], Args[3], Args[4], in lle_X_scanf()
|
/external/clang/include/clang/Basic/ |
D | Builtins.def | 76 // s:N: -> this is a scanf-like function whose Nth argument is the format 709 LIBBUILTIN(scanf, "icC*R.", "fs:0:", "stdio.h", ALL_LANGUAGES)
|
/external/oprofile/ |
D | ChangeLog-2005 | 212 * daemon/opd_kernel.c: fix two scanf potential buffer overflow
|