Hi!
On Mon, Jan 14, 2019 at 12:24:43PM +, Matthew Malcomson wrote:
> I've found a testcase where the stack protector code generated through
> `-fstack-protector-all` doesn't actually protect anything.
[ snip ]
> When compiling on aarch64 with
> ~gcc -fstack-protector-all -g -S stack-reorder.
I've found a testcase where the stack protector code generated through
`-fstack-protector-all` doesn't actually protect anything.
#+name stack-reorder.c
#+begin_src c
#include
#include
int foo (int a, int b, int c) {
char buf[64];
buf[a] = 1;
buf[b] = c;
// Just add somethin