hud_context.c: possible NULL-pointer dereference
https://bugs.freedesktop.org/show_bug.cgi?id=88882
Bug ID: 88882
Summary: hud_context.c: possible NULL-pointer dereference
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Inmesa/src/gallium/auxiliary/hud/hud_context.c
we find the following code
case ',':
env++;
y += height + hud->font.glyph_height * (pane->num_graphs + 2);
if (pane && pane->num_graphs) {
LIST_ADDTAIL(&pane->head, &hud->pane_list);
pane = NULL;
}
break;pane is checked for being NULL. So obviously we expect NULL as possible value. But we use pane->num_graphs before the check. This is possibly a NULL-pointer dereference.
The problem was indicated by cppcheck
http://cppcheck.sourceforge.net/
Best regards
Heinrich Schuchardt
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=88882
Marek Olšák <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #1 from Marek Olšák <[email protected]> --- Fixed by 006fcc0da674ca18ebf07771e3c309997ab32798.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel