We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 354d87b commit 41aca03Copy full SHA for 41aca03
stack-protector/.gitignore
@@ -0,0 +1,2 @@
1
+/stack-smash-protector
2
+/stack-smash-no-protector
stack_smash/Makefile renamed to stack-protector/Makefile
@@ -5,10 +5,10 @@ CFLAGS = -Wall -g
5
all: stack-smash-no-protector stack-smash-protector
6
7
stack-smash-no-protector: stack-smash.c
8
- gcc -Wall -g -o $@ $^
+ gcc -Wall -g -fno-stack-protector -o $@ $^
9
10
stack-smash-protector: stack-smash.c
11
- gcc -Wall -g -fstack-protector -o $@ $^
+ gcc -Wall -g -fstack-protector-strong -o $@ $^
12
13
clean:
14
-rm -f stack-smash-protector stack-smash-no-protector
stack_smash/test_stack_smash.c renamed to stack-protector/stack-smash.c
stack_smash/test.c
0 commit comments