Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nick Mathewson
Tor
Commits
9fcb3ef7
Commit
9fcb3ef7
authored
Sep 07, 2018
by
Nick Mathewson
🐛
Browse files
Merge remote-tracking branch 'teor/bug27461-029' into maint-0.2.9
parents
912ae2b8
8ef4bb7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug27461
0 → 100644
View file @
9fcb3ef7
o Minor bugfixes (compilation):
- Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
supported, and always fails. Some compilers warn about the function
pointer cast on 64-bit Windows.
Fixes bug 27461; bugfix on 0.2.2.23-alpha.
src/or/main.c
View file @
9fcb3ef7
...
...
@@ -3433,6 +3433,13 @@ tor_main(int argc, char *argv[])
#endif
/* On heap corruption, just give up; don't try to play along. */
HeapSetInformation
(
NULL
,
HeapEnableTerminationOnCorruption
,
NULL
,
0
);
/* SetProcessDEPPolicy is only supported on 32-bit Windows.
* (On 64-bit Windows it always fails, and some compilers don't like the
* PSETDEP cast.)
* 32-bit Windows defines _WIN32.
* 64-bit Windows defines _WIN32 and _WIN64. */
#ifndef _WIN64
/* Call SetProcessDEPPolicy to permanently enable DEP.
The function will not resolve on earlier versions of Windows,
and failure is not dangerous. */
...
...
@@ -3446,6 +3453,7 @@ tor_main(int argc, char *argv[])
setdeppolicy
(
3
);
}
}
#endif
/* !defined(_WIN64) */
#endif
configure_backtrace_handler
(
get_version
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment