Home
last modified time | relevance | path

Searched refs:scanf (Results 1 – 25 of 31) sorted by relevance

12

/external/clang/test/Sema/
Dformat-strings-scanf.c12 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()
24scanf("%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 …]
Dformat-strings-fixit.c98 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 …]
Dformat-strings-c90.c4 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()
23scanf("%as", fp); /* expected-warning{{format specifies type 'char **' but the argument has type '… in foo()
25scanf("%aS", fp); /* expected-warning{{format specifies type 'wchar_t **' (aka 'int **') but the a… in foo()
28scanf("%a[abc]", fp); /* expected-warning{{format specifies type 'char **' but the argument has ty… in foo()
Dformat-strings-int-typedefs.c4 int scanf(char const *, ...);
16 scanf("%jd", 0); // expected-warning {{format specifies type 'intmax_t *' (aka 'long long *')}} in test()
17scanf("%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()
Dformat-strings-gnu.c10 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()
53scanf("%Ls", "hello"); // expected-warning {{length modifier 'L' results in undefined behavior or … in scanf_longlong()
Dformat-strings-non-iso.c4 int scanf(const char * restrict, ...);
11scanf("%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()
Dformat-strings-no-fixit.c11 int scanf(char const *, ...);
37 scanf(kFormat6, i); in pr9751()
38 scanf("%00d", i); in pr9751()
/external/clang/test/Analysis/
Dtaint-generic.c3 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()
68scanf("%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 …]
Dtaint-tester.c5 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()
Dstring.c32 int scanf(const char *restrict format, ...);
420 scanf("%s", dst); // Taint data. in strcat_symbolic_dst_length_taint()
/external/clang/test/SemaCXX/
Dformat-strings.cpp6 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()
Dformat-strings-0x.cpp4 extern int scanf(const char *restrict, ...);
9scanf("%as", sp); // expected-warning{{format specifies type 'float *' but the argument has type '… in f()
12 scanf("%afoobar", fp); in f()
/external/genext2fs/m4/
Dac_func_scanf_can_malloc.m412 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/
Dcmdl_parser.h157 #define _tscanf scanf
/external/kernel-headers/original/linux/
Dkernel.h126 __attribute__ ((format (scanf, 2, 3)));
128 __attribute__ ((format (scanf, 2, 0)));
/external/stlport/stlport/stl/
D_cstdio.h111 using _STLP_VENDOR_CSTD::scanf;
/external/libxslt/libxslt/
Dtrio.h182 # define scanf trio_scanf macro
/external/libxml2/
Dtrio.h182 # define scanf trio_scanf macro
/external/icu4c/test/testdata/
Dicuio.txt119 scanf {
/external/genext2fs/
Dconfig.h.in107 /* Define to 1 if the scanf %a conversion format mallocs a buffer. Undefine if
/external/zlib/src/contrib/minizip/
Dminizip.c352 ret = scanf("%1s",answer);
Dminiunz.c390 ret = scanf("%1s",answer);
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp452 GV.IntVal = APInt(32, scanf( Args[0], Args[1], Args[2], Args[3], Args[4], in lle_X_scanf()
/external/clang/include/clang/Basic/
DBuiltins.def76 // 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/
DChangeLog-2005212 * daemon/opd_kernel.c: fix two scanf potential buffer overflow

12