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
75e2e9cf
Commit
75e2e9cf
authored
Aug 23, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Aug 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add an exception handler to catch bad pointers passed by an application.
parent
597edc50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
dc.c
dlls/gdi32/dibdrv/dc.c
+11
-1
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
75e2e9cf
...
...
@@ -23,6 +23,7 @@
#include "gdi_private.h"
#include "dibdrv.h"
#include "wine/exception.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dib
);
...
...
@@ -272,7 +273,16 @@ DWORD convert_bitmapinfo( const BITMAPINFO *src_info, void *src_bits, struct bit
if
(
!
init_dib_info_from_bitmapinfo
(
&
dst_dib
,
dst_info
,
dst_bits
,
0
)
)
return
ERROR_BAD_FORMAT
;
ret
=
dst_dib
.
funcs
->
convert_to
(
&
dst_dib
,
&
src_dib
,
&
src
->
visrect
);
__TRY
{
ret
=
dst_dib
.
funcs
->
convert_to
(
&
dst_dib
,
&
src_dib
,
&
src
->
visrect
);
}
__EXCEPT_PAGE_FAULT
{
WARN
(
"invalid bits pointer %p
\n
"
,
src_bits
);
ret
=
FALSE
;
}
__ENDTRY
/* We shared the color tables, so there's no need to free the dib_infos here */
if
(
!
ret
)
return
ERROR_BAD_FORMAT
;
...
...
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