...
Code Block | ||||
---|---|---|---|---|
| ||||
struct B { int i, j; }; struct D : B { float f; }; void f(D *d) { extern "Fortran" void func(void *); void f(D *d) { func(d); } |
Compliant Solution
...
Code Block | ||||
---|---|---|---|---|
| ||||
struct B { int i, j; }; struct D : B { float f; }; extern "Fortran" void func(void *); void f(D *d) { struct { int i, j; float f; } temp; temp.i = d->i; temp.j = d->j; temp.f = d->f; extern "Fortran" void func(void *); func(&temp); } |
Risk Assessment
...