[Bug 49280] New: Possible usage of null pointer line_def in edit.c

WineHQ Bugzilla wine-bugs at winehq.org
Thu May 28 11:20:36 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49280

            Bug ID: 49280
           Summary: Possible usage of null pointer line_def in edit.c
           Product: Wine
           Version: 5.9
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: comctl32
          Assignee: wine-bugs at winehq.org
          Reporter: mikrutrafal54 at gmail.com
      Distribution: ---

`line_def` may be null(based on condition on while loop) but is used later
`line_def->width`

```
while (line_def && line_idx)
{
    line_def = line_def->next;
    line_idx--;
}
w = es->format_rect.right - es->format_rect.left;
lw = line_def->width;
```

https://github.com/wine-mirror/wine/blob/f0ad5b5c546d17b281aef13fde996cda08d0c14e/dlls/comctl32/edit.c#L2149-L2155

-- 
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