Home
last modified time | relevance | path

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

123

/external/clang/test/Sema/
Dformat-strings-scanf.c12 int scanf(const char * restrict, ...) ;
21 scanf(s, i); // expected-warning{{format 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.c99 int scanf(char const *, ...);
123 scanf("%lf", str); in test2()
124 scanf("%lf", vstr); in test2()
125 scanf("%ls", str); in test2()
126 scanf("%ls", str); in test2()
129 scanf("%f", &shortVar); in test2()
130 scanf("%f", &uShortVar); in test2()
131 scanf("%p", &intVar); in test2()
132 scanf("%f", intAVar); in test2()
133 scanf("%f", intSAParm); in test2()
[all …]
Dformat-strings-ms.c5 int scanf(const char * restrict, ...) ;
44 scanf("%wc", &c); in w_test()
45 scanf("%wC", &c); in w_test()
46 scanf("%C", &c); in w_test()
47 scanf("%ws", s); in w_test()
48 scanf("%wS", s); in w_test()
49 scanf("%S", s); in w_test()
58scanf("%wc", &bad); // expected-warning{{format specifies type 'wchar_t *' (aka 'unsigned short *'… in w_test()
59scanf("%wC", &bad); // expected-warning{{format specifies type 'wchar_t *' (aka 'unsigned short *'… in w_test()
60scanf("%C", &bad); // expected-warning{{format specifies type 'wchar_t *' (aka 'unsigned short *')… in w_test()
[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, ...) ;
51 scanf("%Ld", y); // no-warning in scanf_longlong()
52 scanf("%Lu", y); // no-warning in scanf_longlong()
53 scanf("%Lx", y); // no-warning in scanf_longlong()
54 scanf("%Ld", x); // no-warning in scanf_longlong()
55 scanf("%Lu", x); // no-warning in scanf_longlong()
56 scanf("%Lx", x); // no-warning in scanf_longlong()
57scanf("%Ls", "hello"); // expected-warning {{length modifier 'L' results in undefined behavior or … in scanf_longlong()
Dformat-strings-darwin.c11 int scanf(const char * restrict, ...) ;
57scanf("%hD", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf()
58scanf("%lD", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf()
59scanf("%hU", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf()
60scanf("%lU", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf()
61scanf("%hO", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf()
62scanf("%lO", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf()
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.c17 scanf("%d", &n); in taintTracking()
31 scanf("%p", &ptr); in taintTracking()
43 scanf("%p", &xyPtr); in taintTracking()
51 scanf("%d", &xy.y); in taintTracking()
52 scanf("%d", &xy.x); in taintTracking()
57 scanf("%d %d", &xy.y, &xy.x); in taintTracking()
66 scanf("%d", &x); in BitwiseOp()
180 scanf("%s", s); in atoiTest()
Dglobal_region_invalidation.mm81 scanf("%d", &tmp);
89 scanf("%d", &tmp);
97 scanf("%d", &i);
103 scanf("%d", &i);
113 scanf("%d", &tmp);
121 scanf("%d", &tmp);
128 scanf("%d", &i);
134 scanf("%d", &i);
/external/clang/test/SemaCXX/
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()
12scanf("%p", sp); // expected-warning{{format specifies type 'void **' but the argument has type '… in f()
15 scanf("%afoobar", fp); in f()
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-nopedantic.cpp4 extern int scanf(const char *restrict, ...);
/external/webrtc/webrtc/voice_engine/test/cmd_test/
Dvoe_cmd_test.cc272 ASSERT_EQ(1, scanf("%i", &ip_selection)); in RunTest()
278 ASSERT_EQ(1, scanf("%s", ip)); in RunTest()
283 ASSERT_EQ(1, scanf("%i", &rPort)); in RunTest()
294 ASSERT_EQ(1, scanf("%i", &lPort)); in RunTest()
306 ASSERT_EQ(1, scanf("%i", &codec_selection)); in RunTest()
359 ASSERT_EQ(1, scanf("%d", &pd)); in RunTest()
363 ASSERT_EQ(1, scanf("%d", &rd)); in RunTest()
385 ASSERT_EQ(1, scanf("%i", &call_selection)); in RunTest()
461 ASSERT_EQ(1, scanf("%i", &option_selection)); in RunTest()
542 ASSERT_EQ(1, scanf("%i", &level)); in RunTest()
[all …]
/external/clang/test/SemaObjC/
Dformat-strings-utf8.m10 int scanf(const char * restrict, ...); function
40 scanf("%\u25B9", a);
41 scanf("%\xE2\x96\xB9", a);
42 scanf("%\U00010348", a);
43 scanf("%\xF0\x90\x8D\x88", a);
44 scanf("%\xe2", a);
/external/ltp/include/
Dsafe_file_ops_fn.h31 __attribute__ ((format (scanf, 4, 5)));
36 __attribute__ ((format (scanf, 5, 6)));
41 __attribute__ ((format (scanf, 6, 7)));
/external/bison/lib/
Dstdio.in.h994 # undef scanf
996 # define scanf __scanf__
1004 _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...));
1007 # undef scanf
1008 # define scanf rpl_scanf
1010 _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...)
1013 _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...));
1016 _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...));
1018 _GL_CXXALIASWARN (scanf);
/external/bison/linux-lib/
Dstdio.h1306 # undef scanf
1308 # define scanf __scanf__
1316 _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...));
1319 # undef scanf
1320 # define scanf rpl_scanf
1322 _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...)
1325 _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...));
1328 _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...));
1330 _GL_CXXALIASWARN (scanf);
/external/bison/darwin-lib/
Dstdio.h1306 # undef scanf
1308 # define scanf __scanf__
1316 _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...));
1319 # undef scanf
1320 # define scanf rpl_scanf
1322 _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...)
1325 _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...));
1328 _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...));
1330 _GL_CXXALIASWARN (scanf);
/external/compiler-rt/test/asan/TestCases/Windows/
Dshadow_mapping_failure.cc10 scanf("%s", bigchunk); in main()
/external/ltp/testcases/kernel/controllers/freezer/
Dtimed_forkbomb.c58 while (scanf("%as", &word) < 1) { in main()
/external/libxml2/
Dtrio.h190 # undef scanf
191 # define scanf trio_scanf macro
/external/aac/libSYS/include/
Dcmdl_parser.h157 #define _tscanf scanf

123