https://bugs.kde.org/show_bug.cgi?id=516289

--- Comment #5 from Paul Floyd <[email protected]> ---
I can reproduce the issue with a smaller example

int f(int arg)
{
   int arr[780];
   int ret = arg;
   ret = ret + 42;
   return ret;
}

int main()
{
   int foo = f(35);
   return foo;
}

[the size of arr needs to be tweeked, it seems to match the leftover space
between SP and the rounded page boundary below it, and that depends on the
strings in the environment].

The above example works without --main-stacksize. With a big main stacksize I
can get it to pass/ fail by changing the size of arr.

The first invalid write is the argument 'arg' being spilled onto the stack.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to