updated TestBufferOverrun test case. Since checker doesn't use library dont load std.cfg.
This commit is contained in:
parent
0c0d62171e
commit
360ec9d853
|
@ -3659,11 +3659,11 @@ private:
|
|||
ASSERT_EQUALS("", errout.str());
|
||||
|
||||
// #5835
|
||||
checkstd("int main(int argc, char* argv[]) {\n"
|
||||
" char prog[10];\n"
|
||||
" strcpy(prog, argv[0]);\n"
|
||||
" strcpy(prog, argv[0]);\n"
|
||||
"}");
|
||||
check("int main(int argc, char* argv[]) {\n"
|
||||
" char prog[10];\n"
|
||||
" strcpy(prog, argv[0]);\n"
|
||||
" strcpy(prog, argv[0]);\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("[test.cpp:3]: (error) Buffer overrun possible for long command line arguments.\n"
|
||||
"[test.cpp:4]: (error) Buffer overrun possible for long command line arguments.\n", errout.str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue