Skip to content

Commit

Permalink
shorten test + fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Dec 1, 2024
1 parent 425e22c commit 196d67f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/testbufferoverrun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class TestBufferOverrun : public TestFixture {
TEST_CASE(pointer_out_of_bounds_2);
TEST_CASE(pointer_out_of_bounds_3);
TEST_CASE(pointer_out_of_bounds_4);
TEST_CASE(pointer_out_of_bounds_5); // #20337
TEST_CASE(pointer_out_of_bounds_5); // #10227
TEST_CASE(pointer_out_of_bounds_sub);

TEST_CASE(strcat1);
Expand Down Expand Up @@ -3864,9 +3864,8 @@ class TestBufferOverrun : public TestFixture {
ASSERT_EQUALS("", errout_str());
}

void pointer_out_of_bounds_5() { // #20337
check("int foo(char str[6])\n"
"{\n"
void pointer_out_of_bounds_5() { // #10227
check("int foo(char str[6]) {\n"
" return !((0 && *(\"STRING\" + 14) == 0) || memcmp(str, \"STRING\", 6) == 0);\n"
"}\n");
ASSERT_EQUALS("", errout_str());
Expand Down

0 comments on commit 196d67f

Please sign in to comment.