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
79ad9cbc
Commit
79ad9cbc
authored
Oct 01, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Check buffer size before copying in NONEfdi_decomp.
Check that the data will fit into the fixed sized buffer CAB(outbuf) and return an error if not before copying.
parent
2b5a59c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
fdi.c
dlls/cabinet/fdi.c
+1
-0
No files found.
dlls/cabinet/fdi.c
View file @
79ad9cbc
...
...
@@ -911,6 +911,7 @@ static int LZXfdi_init(int window, fdi_decomp_state *decomp_state) {
static
int
NONEfdi_decomp
(
int
inlen
,
int
outlen
,
fdi_decomp_state
*
decomp_state
)
{
if
(
inlen
!=
outlen
)
return
DECR_ILLEGALDATA
;
if
(
outlen
>
CAB_BLOCKMAX
)
return
DECR_DATAFORMAT
;
memcpy
(
CAB
(
outbuf
),
CAB
(
inbuf
),
(
size_t
)
inlen
);
return
DECR_OK
;
}
...
...
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