Skip to content

Commit

Permalink
Bug 7852:[PenTest] DeployR - Rserve binary is not compiled with stack…
Browse files Browse the repository at this point in the history
… canaries (Linux) (#4)

fix (7852): [PenTest] - Rserve binary is not compiled with stack…
  • Loading branch information
nriesland authored and swells committed Jun 16, 2016
1 parent b5d95b7 commit a66d693
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Rserve/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,20 @@ install: @WITH_SERVER_TRUE@ $(XFILES)
@WITH_SERVER_TRUE@ -cp Rserve $(Rbin)/Rserve
@WITH_SERVER_TRUE@ -cp Rserve.dbg $(Rbin)/Rserve.dbg

Rserv.o: Rserv.c Rsrv.h
$(CC) $(MYINC) $(Rincludes) -c Rserv.c -o $@ -DNDEBUG -DDAEMON -fstack-protector $(PKG_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)

session.o: session.o
$(CC) $(MYINC) $(Rincludes) -c session.c -o $@ -DNDEBUG -DDAEMON -fstack-protector $(PKG_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)

md5.o: md5.c
$(CC) $(MYINC) $(Rincludes) -c md5.c -o $@ -DNDEBUG -DDAEMON -fstack-protector $(PKG_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)

Rserve: Rserv.o session.o md5.o
$(CC) $^ -o $@ $(linkR) $(LIBS) $(PKG_LIBS) -lpthread

Rserv_d.o: Rserv.c Rsrv.h
$(CC) $(MYINC) $(Rincludes) -c Rserv.c -o $@ -DNODAEMON -DRSERV_DEBUG -g $(PKG_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
$(CC) $(MYINC) $(Rincludes) -c Rserv.c -o $@ -DNODAEMON -DRSERV_DEBUG -g -fstack-protector $(PKG_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)

Rserve.dbg: Rserv_d.o session.o md5.o
$(CC) $^ -o $@ $(linkR) $(LIBS) $(PKG_LIBS) -lpthread
Expand Down

0 comments on commit a66d693

Please sign in to comment.