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
538ef6a5
Commit
538ef6a5
authored
Apr 27, 2024
by
Esme Povirk
Committed by
Alexandre Julliard
Apr 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Check for overflow in jpeg_decoder_initialize.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56590
parent
e7225aaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
libjpeg.c
dlls/windowscodecs/libjpeg.c
+4
-0
No files found.
dlls/windowscodecs/libjpeg.c
View file @
538ef6a5
...
...
@@ -248,6 +248,10 @@ static HRESULT CDECL jpeg_decoder_initialize(struct decoder* iface, IStream *str
This
->
stride
=
(
This
->
frame
.
bpp
*
This
->
cinfo
.
output_width
+
7
)
/
8
;
data_size
=
This
->
stride
*
This
->
cinfo
.
output_height
;
if
(
data_size
/
This
->
stride
<
This
->
cinfo
.
output_height
)
/* overflow in multiplication */
return
E_OUTOFMEMORY
;
This
->
image_data
=
malloc
(
data_size
);
if
(
!
This
->
image_data
)
return
E_OUTOFMEMORY
;
...
...
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