diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bfe28b51a..7e8cf18113 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,7 +102,7 @@ jobs: cflags: "-DASAN=1 -DRZ_ASSERT_STDOUT=1 -ftrivial-auto-var-init=pattern -funsigned-char" meson_options: -Dbuildtype=debugoptimized -Db_sanitize=address,undefined --werror asan: true - asan_options: detect_leaks=0,detect_odr_violation=0,allocator_may_return_null=1 + asan_options: detect_leaks=0,allocator_may_return_null=1 run_tests: true enabled: ${{ needs.changes.outputs.edited == 'true' }} timeout: 120 @@ -114,7 +114,7 @@ jobs: cflags: "-DASAN=1 -DRZ_ASSERT_STDOUT=1 -fno-sanitize=function" meson_options: -Dbuildtype=debugoptimized -Db_lundef=false -Db_sanitize=address,undefined --werror asan: true - asan_options: detect_leaks=0,detect_odr_violation=0,allocator_may_return_null=1 + asan_options: detect_leaks=0,allocator_may_return_null=1 run_tests: true enabled: ${{ needs.changes.outputs.edited == 'true' }} timeout: 115 diff --git a/subprojects/rzwinkd/profiles.h b/subprojects/rzwinkd/profiles.h index 1551788490..054c609b80 100644 --- a/subprojects/rzwinkd/profiles.h +++ b/subprojects/rzwinkd/profiles.h @@ -1,63 +1,63 @@ #ifndef PROFILES_H #define PROFILES_H -Profile XP_SP2_X86 = { +static const Profile XP_SP2_X86 = { 2600, 2, 32, 1, { 0x0088, 0x0084, 0x01b0, 0x0174, 0x011c, 0x0190, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x022c, 0x0228, 0x01ec, 0x0004 }, }; -Profile XP_SP3_X86 = { +static const Profile XP_SP3_X86 = { 2600, 3, 32, 1, { 0x0088, 0x0084, 0x01b0, 0x0174, 0x011c, 0x0190, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x022c, 0x0228, 0x01ec, 0x0004 }, }; -Profile WIN7_SP0_X86 = { +static const Profile WIN7_SP0_X86 = { 7601, 0, 32, 0, { 0x00b8, 0x00b4, 0x01a8, 0x016c, 0x0278, 0x0188, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x0268, 0x0260, 0x022c, 0x0004 }, }; -Profile WIN7_SP1_X86 = { +static const Profile WIN7_SP1_X86 = { 7601, 1, 32, 0, { 0x00b8, 0x00b4, 0x01a8, 0x016c, 0x0278, 0x0188, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x0268, 0x0260, 0x022c, 0x0004 }, }; -Profile WIN7_SP0_X64 = { +static const Profile WIN7_SP0_X64 = { 7601, 0, 64, 0, { 0x0188, 0x0180, 0x0338, 0x02e0, 0x0448, 0x0308, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x0420, 0x0410, 0x03b0, 0x0008 }, }; -Profile WIN7_SP1_X64 = { +static const Profile WIN7_SP1_X64 = { 7601, 1, 64, 0, { 0x0188, 0x0180, 0x0338, 0x02e0, 0x0448, 0x0308, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x0420, 0x0410, 0x03b0, 0x0008 }, }; -Profile WIN8_SP0_X64 = { +static const Profile WIN8_SP0_X64 = { 9200, 0, 64, 0, { 0x02E8, 0x02E0, 0x03E8, 0x0438, 0x0590, 0x0470, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x0400, 0x03F0, 0x0398, 0x0008 }, }; -Profile WIN8_SP0_X86 = { +static const Profile WIN8_SP0_X86 = { 9200, 0, 32, 0, { 0xB8, 0xB4, 0x0140, 0x0170, 0x0274, 0x0194, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x024C, 0x0244, 0x0214, 0x0004 }, }; -Profile WIN8_SP1_X64 = { +static const Profile WIN8_SP1_X64 = { // 8.1 9200, 1, @@ -65,7 +65,7 @@ Profile WIN8_SP1_X64 = { 0, { 0x02E8, 0x02E0, 0x03E8, 0x0438, 0x05D8, 0x0470, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x0688, 0x0678, 0x0620, 0x0008 }, }; -Profile WIN8_SP1_X86 = { +static const Profile WIN8_SP1_X86 = { // 8.1 9200, 1, @@ -73,7 +73,7 @@ Profile WIN8_SP1_X86 = { 0, { 0xB8, 0xB4, 0x0140, 0x0170, 0x0274, 0x0194, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x039C, 0x0394, 0x0364, 0x0004 }, }; -Profile WIN10_RS1_X64 = { +static const Profile WIN10_RS1_X64 = { // Windows 10 (Anniversary Update) 14393, 0, @@ -81,7 +81,7 @@ Profile WIN10_RS1_X64 = { 0, { 0x02f0, 0x02e8, 0x03f8, 0x0450, 0x0620, 0x0488, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x0698, 0x0688, 0x0630, 0x0008 }, }; -Profile WIN10_RS4_X64 = { +static const Profile WIN10_RS4_X64 = { // Windows 10 (April 2018 Update) 17134, 0, @@ -89,7 +89,7 @@ Profile WIN10_RS4_X64 = { 0, { 0x02e8, 0x02e0, 0x03f8, 0x0450, 0x0628, 0x0488, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x06a8, 0x0690, 0x0638, 0x0008 }, }; -Profile WIN10_19H1_X64 = { +static const Profile WIN10_19H1_X64 = { // Windows 10 (May 2019 Update) 18362, 0, @@ -97,7 +97,7 @@ Profile WIN10_19H1_X64 = { 0, { 0x02f0, 0x02e8, 0x03f8, 0x0450, 0x0658, 0x0488, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x06b8, 0x06a0, 0x0648, 0x0008 }, }; -Profile WIN10_20H2_X64 = { +static const Profile WIN10_20H2_X64 = { // Windows 10 (October 2020 Update) 19041, 0, @@ -105,7 +105,7 @@ Profile WIN10_20H2_X64 = { 0, { 0x0448, 0x0440, 0x0550, 0x05a8, 0x07d8, 0x05e0, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x04e8, 0x04d0, 0x0478, 0x0008 }, }; -Profile WIN10_21H2_X64 = { +static const Profile WIN10_21H2_X64 = { // Windows 10 (November 2021 Update) 19044, 0, @@ -113,84 +113,84 @@ Profile WIN10_21H2_X64 = { 0, { 0x0448, 0x0440, 0x0550, 0x05a8, 0x07d8, 0x05e0, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x04e8, 0x04d0, 0x0478, 0x0008 }, }; -Profile WIN11_22000 = { +static const Profile WIN11_22000 = { 22000, 0, 64, 0, { 0x0400, 0x03f8, 0x0508, 0x0560, 0x0898, 0x0598, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x0558, 0x0540, 0x04e8, 0x0008 }, }; -Profile VISTA_SP0_X86 = { +static const Profile VISTA_SP0_X86 = { 6000, 0, 32, 0, { 0x00a0, 0x009c, 0x0188, 0x014c, 0x0238, 0x0168, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x0248, 0x0240, 0x020c, 0x0004 }, }; -Profile VISTA_SP0_X64 = { +static const Profile VISTA_SP0_X64 = { 6000, 0, 64, 0, { 0x00e8, 0x00e0, 0x0290, 0x0238, 0x0380, 0x0260, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x03f0, 0x03e0, 0x0380, 0x0008 }, }; -Profile VISTA_SP1_X86 = { +static const Profile VISTA_SP1_X86 = { 6000, 1, 32, 0, { 0x00a0, 0x009c, 0x0188, 0x014c, 0x0238, 0x0168, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x0248, 0x0240, 0x020c, 0x0004 }, }; -Profile VISTA_SP1_X64 = { +static const Profile VISTA_SP1_X64 = { 6000, 1, 64, 0, { 0x00e8, 0x00e0, 0x0290, 0x0238, 0x0380, 0x0260, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x03f0, 0x03e0, 0x0380, 0x0008 }, }; -Profile VISTA_SP2_X86 = { +static const Profile VISTA_SP2_X86 = { 6002, 2, 32, 0, { 0x00a0, 0x009c, 0x0188, 0x014c, 0x0238, 0x0168, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x0248, 0x0240, 0x020c, 0x0004 }, }; -Profile VISTA_SP2_X64 = { +static const Profile VISTA_SP2_X64 = { 6002, 2, 64, 0, { 0x00e8, 0x00e0, 0x0290, 0x0238, 0x0380, 0x0260, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x03f0, 0x03e0, 0x0380, 0x0008 }, }; -Profile WIN2003_SP0_X86 = { +static const Profile WIN2003_SP0_X86 = { 3790, 0, 32, 0, { 0x0088, 0x0084, 0x0190, 0x0154, 0x0258, 0x0170, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x0234, 0x0230, 0x01f4, 0x0004 }, }; -Profile WIN2003_SP1_X86 = { +static const Profile WIN2003_SP1_X86 = { 3790, 1, 32, 0, { 0x0098, 0x0094, 0x01a0, 0x0164, 0x0250, 0x0180, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x0224, 0x0220, 0x01e4, 0x0004 }, }; -Profile WIN2003_SP1_X64 = { +static const Profile WIN2003_SP1_X64 = { 3790, 1, 64, 0, { 0x00e0, 0x00d8, 0x02c0, 0x0268, 0x0398, 0x0290, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x03e8, 0x03e0, 0x0370, 0x0008 }, }; -Profile WIN2003_SP2_X86 = { +static const Profile WIN2003_SP2_X86 = { 3790, 2, 32, 0, { 0x0098, 0x0094, 0x01a0, 0x0164, 0x0250, 0x0180, 0x0018, 0x0008, 0x0010, 0x0038, 0x0000, 0x0224, 0x0220, 0x01e4, 0x0004 }, }; -Profile WIN2003_SP2_X64 = { +static const Profile WIN2003_SP2_X64 = { 3790, 2, 64, @@ -198,7 +198,7 @@ Profile WIN2003_SP2_X64 = { { 0x00e0, 0x00d8, 0x02c0, 0x0268, 0x0398, 0x0290, 0x0028, 0x0010, 0x0020, 0x0060, 0x0000, 0x03d0, 0x03c8, 0x0358, 0x0008 }, }; -static Profile *p_table[] = { +static const Profile *p_table[] = { &XP_SP2_X86, &XP_SP3_X86, &WIN7_SP0_X86,