[Bug 49201] New: Possible usage of null pointer elp in objects.c
WineHQ Bugzilla
wine-bugs at winehq.org
Tue May 19 13:38:00 CDT 2020
https://bugs.winehq.org/show_bug.cgi?id=49201
Bug ID: 49201
Summary: Possible usage of null pointer elp in objects.c
Product: Wine
Version: 5.8
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdi32
Assignee: wine-bugs at winehq.org
Reporter: mikrutrafal54 at gmail.com
Distribution: ---
Pointer `elp` is used but might to be a null pointer - `(elp != NULL)` this
line assume this
https://github.com/wine-mirror/wine/blob/6d801377055911d914226a3c6af8d8637a63fa13/dlls/gdi32/dibdrv/objects.c#L2215-L2223
```
case PS_USERSTYLE:
pdev->pen_lines = (pdev->pen_width == 1) ? dashed_pen_lines :
dashed_wide_pen_lines;
set_dash_pattern( &pdev->pen_pattern, elp->elpNumEntries,
elp->elpStyleEntry );
if (!(logpen.lopnStyle & PS_GEOMETRIC)) scale_dash_pattern(
&pdev->pen_pattern, 3, PS_ENDCAP_FLAT );
break;
}
pdev->pen_uses_region = (logpen.lopnStyle & PS_GEOMETRIC || pdev->pen_width
> 1);
pdev->pen_is_ext = (elp != NULL);
```
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list