https://bugs.winehq.org/show_bug.cgi?id=55684
Bug ID: 55684 Summary: Null pointer dereference in failure path Product: vkd3d Version: 1.9 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: vkd3d Assignee: wine-bugs@winehq.org Reporter: bunglehead@gmail.com Distribution: ---
From Coverity report:
/home/akhaldi/wine/libs/vkd3d/libs/vkd3d-shader/dxil.c: 1793 in sm6_parser_declare_function() 1787 return false; 1788 } 1789 ret_type = fn->type->u.function->ret_type; 1790 1791 if (!(fn->type = sm6_type_get_pointer_to_type(fn->type, ADDRESS_SPACE_DEFAULT, sm6))) 1792 {
CID 1546877: Null pointer dereferences (FORWARD_NULL) Dereferencing null pointer "fn->type".
1793 WARN("Failed to get pointer type for type %u.\n", fn->type->class); 1794 return false; 1795 } 1796 1797 if (record->operands[1]) 1798 WARN("Ignoring calling convention %#"PRIx64".\n", record->operands[1]);
The issue is obviously in 'fn->type' being reused in a warning message.