Skip to content

Commit 41aca03

Browse files
committed
stack-smash: Rename and rework to stack-protector
1 parent 354d87b commit 41aca03

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

stack-protector/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/stack-smash-protector
2+
/stack-smash-no-protector

stack_smash/Makefile renamed to stack-protector/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ CFLAGS = -Wall -g
55
all: stack-smash-no-protector stack-smash-protector
66

77
stack-smash-no-protector: stack-smash.c
8-
gcc -Wall -g -o $@ $^
8+
gcc -Wall -g -fno-stack-protector -o $@ $^
99

1010
stack-smash-protector: stack-smash.c
11-
gcc -Wall -g -fstack-protector -o $@ $^
11+
gcc -Wall -g -fstack-protector-strong -o $@ $^
1212

1313
clean:
1414
-rm -f stack-smash-protector stack-smash-no-protector
File renamed without changes.

stack_smash/test.c

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)