Enable ASLR. Closes #119.

Workaround provided by Selva Nair.
pull/123/head
Chocobo1 8 years ago
parent b350b0e1bc
commit d2a8c8d1ff

@ -57,7 +57,7 @@ case "$host" in
*-mingw*) *-mingw*)
CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN" CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
CPPFLAGS="${CPPFLAGS} -D_WIN32_WINNT=NTDDI_WINXP" CPPFLAGS="${CPPFLAGS} -D_WIN32_WINNT=NTDDI_WINXP"
LDFLAGS="${LDFLAGS} -Wl,--nxcompat" LDFLAGS="${LDFLAGS} -Wl,--nxcompat,--dynamicbase"
;; ;;
*) *)
test "${enable_distonly}" = "no" && AC_MSG_ERROR([This project is supported for windows only.]) test "${enable_distonly}" = "no" && AC_MSG_ERROR([This project is supported for windows only.])

@ -68,6 +68,9 @@ TCHAR szTitleText[ ] = _T("OpenVPN");
/* Options structure */ /* Options structure */
options_t o; options_t o;
/* Workaround for ASLR on Windows */
__declspec(dllexport) char aslr_workaround;
static int static int
VerifyAutoConnections() VerifyAutoConnections()
{ {

Loading…
Cancel
Save