Skip to content

Commit 66e4faa

Browse files
committed
Add regression test for true negative argumentSize
1 parent d5bc328 commit 66e4faa

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/testbufferoverrun.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,6 +2477,14 @@ class TestBufferOverrun : public TestFixture {
24772477
"f(a);\n"
24782478
"");
24792479
ASSERT_EQUALS("", errout.str());
2480+
2481+
check("void CreateLeafTex(unsigned char buf[256][2048][4]);\n"
2482+
"void foo() {\n"
2483+
" unsigned char(* tree)[2048][4] = new unsigned char[256][2048][4];\n"
2484+
" CreateLeafTex(tree);\n"
2485+
"}");
2486+
ASSERT_EQUALS("", errout.str());
2487+
24802488
}
24812489

24822490
void possible_buffer_overrun_1() { // #3035

0 commit comments

Comments
 (0)