Browse Source

disable -fstack-protector on android. is it causing false-positives or is really

a stack overflow going on? if so why linux compilation doesn't show the same?
not sure, but it seems to work fine, no crashs without this flag.
miguelfreitas
Miguel Freitas 11 years ago
parent
commit
5c0cb31f26
  1. 2
      src/makefile.android

2
src/makefile.android

@ -63,7 +63,7 @@ endif @@ -63,7 +63,7 @@ endif
# If a stack buffer if overflowed, it writes over the canary number and then on return
# when that number is checked, it won't be the same and the program will exit with
# a "Stack smashing detected" error instead of being exploited.
HARDENING+=-fstack-protector-all -Wstack-protector
#HARDENING+=-fstack-protector-all -Wstack-protector
# Make some important things such as the global offset table read only as soon as
# the dynamic linker is finished building it. This will prevent overwriting of addresses

Loading…
Cancel
Save