Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f3e17b

Browse files
committed
Disable RandomizedBaseAddress on MSVC builds
The ASLR in Windows 8/Windows 2012 can break PostgreSQL's shared memory. Itdoesn't fail every time (which is explained by the Random part in ASLR), butcan fail with errors abut failing to reserve shared memory region.MauMau, reviewed by Craig Ringer
1 parent057152b commit7f3e17b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎src/tools/msvc/MSBuildProject.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ sub WriteItemDefinitionGroup
324324
<ProgramDatabaseFile>.\\$cfgname\\$self->{name}\\$self->{name}.pdb</ProgramDatabaseFile>
325325
<GenerateMapFile>false</GenerateMapFile>
326326
<MapFileName>.\\$cfgname\\$self->{name}\\$self->{name}.map</MapFileName>
327+
<RandomizedBaseAddress>false</RandomizedBaseAddress>
327328
<SubSystem>Console</SubSystem>
328329
<TargetMachine>$targetmachine</TargetMachine>
329330
EOF

‎src/tools/msvc/VCBuildProject.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ EOF
190190
StackReserveSize="4194304" DisableSpecificWarnings="$self->{disablewarnings}"
191191
GenerateDebugInformation="TRUE" ProgramDatabaseFile=".\\$cfgname\\$self->{name}\\$self->{name}.pdb"
192192
GenerateMapFile="FALSE" MapFileName=".\\$cfgname\\$self->{name}\\$self->{name}.map"
193+
RandomizedBaseAddress="FALSE"
193194
SubSystem="1" TargetMachine="$targetmachine"
194195
EOF
195196
if ($self->{disablelinkerwarnings})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp