We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 303b85c commit 6c55f9cCopy full SHA for 6c55f9c
1 file changed
test/testbufferoverrun.cpp
@@ -4943,6 +4943,14 @@ class TestBufferOverrun : public TestFixture {
4943
" return p[4];\n"
4944
"}\n");
4945
ASSERT_EQUALS("", errout.str());
4946
+
4947
+ check("struct S { uint8_t padding[500]; };\n" // #10133
4948
+ "S s = { 0 };\n"
4949
+ "uint8_t f() {\n"
4950
+ " uint8_t* p = (uint8_t*)&s;\n"
4951
+ " return p[10];\n"
4952
+ "}\n");
4953
+ ASSERT_EQUALS("", errout.str());
4954
}
4955
};
4956
0 commit comments