The test reads 400 bytes of memory above the local variable. If the stack is shallow, this can reach non-allocated space, resulting in a test failure. The patch fixes the issue by reserving enough space in the upper stack frame.
10 lines
137 B
C++
10 lines
137 B
C++
int test() {
|
|
int my_ints[] = {0x42};
|
|
return 0; // Set break point at this line.
|
|
}
|
|
|
|
int main() {
|
|
int dummy[100];
|
|
return test();
|
|
}
|