https://bugs.freedesktop.org/show_bug.cgi?id=94711
Bug ID: 94711
Summary: Patch for pb_reference to explicitly handle NULL src
Product: Mesa
Version: 11.1
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Other
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Created attachment 122572
--> https://bugs.freedesktop.org/attachment.cgi?id=122572&action=edit
Patch for problem.
Noticed while looking at a crash that pb_reference is called in several
places with src set to NULL which is interesting since pb_reference then
calls pipe_reference with &src->reference. The existing code works since
struct pb_buffer looks like:
struct pb_buffer {
struct pipe_reference reference;
...
meaning &src->reference with src = NULL happens to equal NULL. The
attached patch explicitly handles src = NULL which is less fragile and
clearly communicates that being passed NULL is valid.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug._______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev