Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e4748c3c
Commit
e4748c3c
authored
Nov 09, 2008
by
Christian Costa
Committed by
Alexandre Julliard
Nov 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Increase max childs/subobjects and check the limit is not overcome.
parent
b46b7517
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
d3dxof.c
dlls/d3dxof/d3dxof.c
+11
-0
d3dxof_private.h
dlls/d3dxof/d3dxof_private.h
+2
-2
No files found.
dlls/d3dxof/d3dxof.c
View file @
e4748c3c
...
@@ -1989,6 +1989,12 @@ _exit:
...
@@ -1989,6 +1989,12 @@ _exit:
}
}
}
}
if
(
buf
->
pxo
->
nb_childs
>
MAX_CHILDS
)
{
FIXME
(
"Too many childs %d
\n
"
,
buf
->
pxo
->
nb_childs
);
return
FALSE
;
}
return
TRUE
;
return
TRUE
;
}
}
...
@@ -2094,6 +2100,11 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
...
@@ -2094,6 +2100,11 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
}
}
This
->
buf
.
pxo
->
nb_subobjects
=
This
->
buf
.
cur_subobject
;
This
->
buf
.
pxo
->
nb_subobjects
=
This
->
buf
.
cur_subobject
;
if
(
This
->
buf
.
cur_subobject
>
MAX_SUBOBJECTS
)
{
FIXME
(
"Too many suobjects %d
\n
"
,
This
->
buf
.
cur_subobject
);
return
DXFILEERR_BADALLOC
;
}
object
->
pobj
=
This
->
buf
.
pxo
;
object
->
pobj
=
This
->
buf
.
pxo
;
object
->
cur_enum_object
=
0
;
object
->
cur_enum_object
=
0
;
...
...
dlls/d3dxof/d3dxof_private.h
View file @
e4748c3c
...
@@ -36,10 +36,10 @@
...
@@ -36,10 +36,10 @@
#define MAX_NAME_LEN 32
#define MAX_NAME_LEN 32
#define MAX_ARRAY_DIM 1
#define MAX_ARRAY_DIM 1
#define MAX_MEMBERS 50
#define MAX_MEMBERS 50
#define MAX_CHILDS
1
0
#define MAX_CHILDS
2
0
#define MAX_TEMPLATES 200
#define MAX_TEMPLATES 200
#define MAX_OBJECTS 200
#define MAX_OBJECTS 200
#define MAX_SUBOBJECTS 20
#define MAX_SUBOBJECTS
1
20
typedef
struct
{
typedef
struct
{
DWORD
type
;
DWORD
type
;
...
...
Write
Preview
Markdown
is supported
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