Skip to content

Commit 5ddc9bf

Browse files
authored
[2.4] Cherry Pick Load Flags Commit (#4884)
* Fix Windows Loader Flags (#4883) * Update Patch Version * Allow non-System32 DLL Loads for Sanitizer Builds (#4886) * cp key update crash
1 parent f6fbf35 commit 5ddc9bf

11 files changed

+19
-14
lines changed

.azure/OneBranch.Package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ extends:
9595
ob_createvpack_owneralias: quicdev
9696
ob_createvpack_description: msquic.$(Build.SourceBranchName)
9797
ob_createvpack_versionAs: string
98-
ob_createvpack_version: 2.4.7-$(Build.BuildId)
98+
ob_createvpack_version: 2.4.8-$(Build.BuildId)
9999
steps:
100100
- task: DownloadPipelineArtifact@2
101101
inputs:

CMakeLists.txt

+10-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ message(STATUS "CMAKE Version: ${CMAKE_VERSION}")
1919

2020
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
2121
set(CMAKE_VS_GLOBALS "UseInternalMSUniCrtPackage=true")
22-
22+
2323
message(STATUS "Source Dir: ${CMAKE_CURRENT_SOURCE_DIR}")
2424
message(STATUS "Host System name: ${CMAKE_HOST_SYSTEM_NAME}")
2525
if ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
@@ -57,7 +57,7 @@ message(STATUS "Platform version: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
5757
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
5858

5959
set(QUIC_MAJOR_VERSION 2)
60-
set(QUIC_FULL_VERSION 2.4.7)
60+
set(QUIC_FULL_VERSION 2.4.8)
6161

6262
if (WIN32)
6363
set(CX_PLATFORM "windows")
@@ -229,6 +229,14 @@ if (WIN32)
229229
endif()
230230
endif()
231231

232+
if (QUIC_ENABLE_SANITIZERS)
233+
message(STATUS "Allowing non-system32 DLLs to be loaded for ASAN")
234+
else()
235+
# Configure linker to only load from the system directory.
236+
message(STATUS "Configuring linker to only load from the system directory")
237+
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DEPENDENTLOADFLAG:0x800")
238+
endif()
239+
232240
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
233241
list(APPEND QUIC_COMMON_FLAGS /MP)
234242
endif()

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "msquic"
3-
version = "2.4.7-beta"
3+
version = "2.4.8-beta"
44
edition = "2018"
55
authors = ["Microsoft"]
66
description = "Microsoft implementation of the IETF QUIC protocol"

scripts/package-distribution.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $ArtifactsBinDir = Join-Path $BaseArtifactsDir "bin"
2424
# All direct subfolders are OS's
2525
$Platforms = Get-ChildItem -Path $ArtifactsBinDir
2626

27-
$Version = "2.4.7"
27+
$Version = "2.4.8"
2828

2929
$WindowsBuilds = @()
3030
$AllBuilds = @()

scripts/package-nuget.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ $DistDir = Join-Path $BaseArtifactsDir "dist"
153153
$CurrentCommitHash = Get-GitHash -RepoDir $RootDir
154154
$RepoRemote = Get-GitRemote -RepoDir $RootDir
155155

156-
$Version = "2.4.7"
156+
$Version = "2.4.8"
157157

158158
$BuildId = $env:BUILD_BUILDID
159159
if ($null -ne $BuildId) {

scripts/write-versions.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $ArtifactsDir = $BuildConfig.ArtifactsDir
2626
$SourceVersion = $env:BUILD_SOURCEVERSION;
2727
$SourceBranch = $env:BUILD_SOURCEBRANCH;
2828
$BuildId = $env:BUILD_BUILDID;
29-
$VersionNumber = "2.4.7";
29+
$VersionNumber = "2.4.8";
3030

3131
class BuildData {
3232
[string]$SourceVersion;

src/bin/CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ if(BUILD_SHARED_LIBS)
1515
set_target_properties(msquic PROPERTIES OUTPUT_NAME ${QUIC_LIBRARY_NAME})
1616
if (NOT WIN32)
1717
set_target_properties(msquic PROPERTIES SOVERSION ${QUIC_MAJOR_VERSION} VERSION ${QUIC_FULL_VERSION})
18-
else()
19-
# Configure linker to only load from the system directory.
20-
set_target_properties(msquic PROPERTIES LINK_FLAGS "/DEPENDENTLOADFLAG:0x800")
2118
endif()
2219
else()
2320
add_library(msquic_static STATIC static/empty.c)

src/distribution/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleInfoDictionaryVersion</key>
2020
<string>6.0</string>
2121
<key>CFBundleVersion</key>
22-
<string>2.4.7</string>
22+
<string>2.4.8</string>
2323
<key>NSHumanReadableCopyright</key>
2424
<string>MIT</string>
2525
<key>CFBundleGetInfoString</key>

src/inc/msquic.ver

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#endif
1313

1414
#ifndef VER_PATCH
15-
#define VER_PATCH 7
15+
#define VER_PATCH 8
1616
#endif
1717

1818
#ifndef VER_BUILD_ID

src/platform/crypt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ QuicPacketKeyUpdate(
489489
_Out_ QUIC_PACKET_KEY** NewKey
490490
)
491491
{
492-
if (OldKey->Type != QUIC_PACKET_KEY_1_RTT) {
492+
if (OldKey == NULL || OldKey->Type != QUIC_PACKET_KEY_1_RTT) {
493493
return QUIC_STATUS_INVALID_STATE;
494494
}
495495

version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "major": 2, "minor": 4, "patch": 7 }
1+
{ "major": 2, "minor": 4, "patch": 8 }

0 commit comments

Comments
 (0)