Sonarqube version : 7.4.0.18908
SonarCFamily : 6.3 ( build 11371 )
An out of bound memory access should be detected at 'tt.val[2].val = 0;"
This is detected for a simple array - but not when structures are used.
typedef struct
{
int val;
} testElement;
typedef struct
{
testElement val[2];
} testStruct;
int main(int argc, char** argv)
{
testStruct tt = {};
tt.val[2].val = 0;
return tt.val[0].val;
}