Skip to content

Commit 166db40

Browse files
committed
Fix TestBufferOverrun test case, it was wrongly written.
1 parent c43d537 commit 166db40

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/testbufferoverrun.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,10 +3265,10 @@ class TestBufferOverrun : public TestFixture {
32653265
ASSERT_EQUALS("[test.cpp:3]: (error) Buffer is accessed out of bounds: str\n", errout.str());
32663266

32673267
// ticket #1659 - overflowing variable when using memcpy
3268-
checkstd("void f(void) { \n"
3269-
" char c;\n"
3270-
" mymemset(&c, 0, 4);\n"
3271-
"}");
3268+
check("void f(void) { \n"
3269+
" char c;\n"
3270+
" mymemset(&c, 0, 4);\n"
3271+
"}", settings);
32723272
TODO_ASSERT_EQUALS("[test.cpp:3]: (error) Buffer is accessed out of bounds: c\n", "", errout.str());
32733273

32743274
// ticket #2121 - buffer access out of bounds when using uint32_t

0 commit comments

Comments
 (0)