[Bug 37125] New: PVS-Studio Error: First the execution, then the trial
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Aug 16 13:26:08 CDT 2014
https://bugs.winehq.org/show_bug.cgi?id=37125
Bug ID: 37125
Summary: PVS-Studio Error: First the execution, then the trial
Product: Wine
Version: 1.7.22
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs at winehq.org
Reporter: lukebenes at hotmail.com
PVS-Studio identifies a First the execution, then the trial Error,V595. The
'decl' pointer was utilized before it was verified against nullptr. Check
lines: 1411, 1417. parser.y 1411
...
var_t *v = decl->var; //<==
expr_list_t *sizes = get_attrp(attrs, ATTR_SIZEIS);
expr_list_t *lengs = get_attrp(attrs, ATTR_LENGTHIS);
int sizeless;
expr_t *dim;
type_t **ptype;
array_dims_t *arr = decl ? decl->array : NULL; //<==
type_t *func_type = decl ? decl->func_type : NULL; //<==
...
First the value by pointer is taken, then it is checked.
Other similar fragments:
V595 The 'pcbData' pointer was utilized before it was verified against
nullptr. Check lines: 1859, 1862. registry.c 1859
V595 The 'token_user' pointer was utilized before it was verified against
nullptr. Check lines: 206, 213. lsa.c 206
V595 The 'psp' pointer was utilized before it was verified against nullptr.
Check lines: 2680, 2689. propsheet.c 2680
V595 The 'lpFindInfo' pointer was utilized before it was verified against
nullptr. Check lines: 6285, 6289. listview.c 6285
V595 The 'compiland' pointer was utilized before it was verified against
nullptr. Check lines: 287, 294. symbol.c 287
V595 The 'graphics' pointer was utilized before it was verified against
nullptr. Check lines: 2096, 2112. graphics.c 2096
V595 The 'current' pointer was utilized before it was verified against
nullptr. Check lines: 240, 251. request.c 240
details on the V595 error here: http://www.viva64.com/en/d/0205/
--
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