You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pjonsson
changed the title
initArray and setLength can not handle uninitialized arrays
Nested arrays gives initArray and setLength undefined values
Mar 19, 2014
Yes, I have seen it when there is some nested structure in the result, e.g. Pull DIM1 (Data WordN, Pull1 WordN). Then the data structure for the inner array is not properly initialized.
Yes, I think we have enough information at compile time.
If
initArray
orsetLength
are passed a pointer to an uninitialized array they will cause a segmentation fault as exemplified by this code:In the generated code below, the second setLength (second line in the outer loop) is fed an uninitialized value.
The text was updated successfully, but these errors were encountered: