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
e3f226fd
Commit
e3f226fd
authored
May 12, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Allow NULL size pointer in IMFAttributes::GetAllocatedBlob().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1336f596
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
main.c
dlls/mfplat/main.c
+1
-0
mfplat.c
dlls/mfplat/tests/mfplat.c
+5
-0
No files found.
dlls/mfplat/main.c
View file @
e3f226fd
...
...
@@ -2743,6 +2743,7 @@ HRESULT attributes_GetAllocatedBlob(struct attributes *attributes, REFGUID key,
if
(
SUCCEEDED
(
hr
))
{
*
buf
=
attrval
.
caub
.
pElems
;
if
(
size
)
*
size
=
attrval
.
caub
.
cElems
;
}
...
...
dlls/mfplat/tests/mfplat.c
View file @
e3f226fd
...
...
@@ -1749,6 +1749,11 @@ static void test_attributes(void)
ok
(
!
memcmp
(
blob_buf
,
blob
,
size
),
"Unexpected blob.
\n
"
);
CoTaskMemFree
(
blob_buf
);
hr
=
IMFAttributes_GetAllocatedBlob
(
attributes
,
&
DUMMY_GUID1
,
&
blob_buf
,
NULL
);
ok
(
hr
==
S_OK
,
"Failed to get allocated blob, hr %#lx.
\n
"
,
hr
);
ok
(
!
memcmp
(
blob_buf
,
blob
,
size
),
"Unexpected blob.
\n
"
);
CoTaskMemFree
(
blob_buf
);
hr
=
IMFAttributes_GetAllocatedBlob
(
attributes
,
&
DUMMY_GUID2
,
&
blob_buf
,
&
size
);
ok
(
hr
==
MF_E_ATTRIBUTENOTFOUND
,
"Unexpected hr %#lx.
\n
"
,
hr
);
...
...
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