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@winehq.org Reporter: mikrutrafal54@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/6d801377055911d914226a3c6af8d8637a6...
``` 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);
```