Fix TestBufferOverrun test case, it was wrongly written.

This commit is contained in:
Daniel Marjamäki 2015-02-14 15:51:13 +01:00
parent c43d537726
commit 166db40af2
1 changed files with 4 additions and 4 deletions

View File

@ -3265,10 +3265,10 @@ private:
ASSERT_EQUALS("[test.cpp:3]: (error) Buffer is accessed out of bounds: str\n", errout.str());
// ticket #1659 - overflowing variable when using memcpy
checkstd("void f(void) { \n"
check("void f(void) { \n"
" char c;\n"
" mymemset(&c, 0, 4);\n"
"}");
"}", settings);
TODO_ASSERT_EQUALS("[test.cpp:3]: (error) Buffer is accessed out of bounds: c\n", "", errout.str());
// ticket #2121 - buffer access out of bounds when using uint32_t