Skip to content

Commit db3b5b1

Browse files
committed
Fixed errant %s in scanf format string during dumped texture enumeration that could cause stack overflows when used with DumpOnFirstLoad
1 parent 57c0dcf commit db3b5b1

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
25.12.2.4
1+
25.12.2.5
2+
=========
3+
+ Fixed errant %s in scanf format string during dumped texture enumeration
4+
that could cause stack overflows when used with DumpOnFirstLoad.
5+
6+
25.12.2.4
27
=========
38
+ Disable il2cpp support in 32-bit Unity games because not all of them use
49
fastcall calling convention for il2cpp exports, which causes crashes.

include/SpecialK/DLL_VERSION.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#define SK_YEAR 25
44
#define SK_MONTH 12
55
#define SK_DATE 2
6-
#define SK_REV_N 4
7-
#define SK_REV 4
6+
#define SK_REV_N 5
7+
#define SK_REV 5
88

99
#ifndef _A2
1010
#define _A2(a) #a

src/render/d3d11/tex_mgr/d3d11_tex_mgr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3095,8 +3095,8 @@ SK_D3D11_PopulateResourceList (bool refresh)
30953095
{
30963096
swscanf ( fd.cFileName,
30973097
typeless
3098-
? LR"(%s\Uncompressed_%08X_%08X_TYPELESS.dds)"
3099-
: LR"(%s\Uncompressed_%08X_%08X.dds)",
3098+
? LR"(Uncompressed_%08X_%08X_TYPELESS.dds)"
3099+
: LR"(Uncompressed_%08X_%08X.dds)",
31003100
&top_crc32,
31013101
&checksum );
31023102
}

0 commit comments

Comments
 (0)