Skip to content

resource.h error C28182: Dereferencing NULL pointer #610

@mtfriesen

Description

@mtfriesen

We started hitting a build error when dependabot updated our WIL submodule in microsoft/xdp-for-windows#947.

    14>Lib:
         xdptests.vcxproj -> D:\a\xdp-for-windows\xdp-for-windows\artifacts\bin\x64_Debug\test\xdptests.lib
    14>D:\a\xdp-for-windows\xdp-for-windows\submodules\wil\include\wil\resource.h(4000): error C28182: Dereferencing NULL pointer. 'Temp_value_#32186' contains the same NULL value as 'new(1*144, nothrow)' did.  [D:\a\xdp-for-windows\xdp-for-windows\test\functional\lib\xdptests.vcxproj]
    14>D:\a\xdp-for-windows\xdp-for-windows\submodules\wil\include\wil\resource.h(4000): error C28182: Dereferencing NULL pointer. 'Temp_value_#32553' contains the same NULL value as 'new(1*144, nothrow)' did.  [D:\a\xdp-for-windows\xdp-for-windows\test\functional\lib\xdptests.vcxproj]
    14>D:\a\xdp-for-windows\xdp-for-windows\submodules\wil\include\wil\resource.h(4000): error C28182: Dereferencing NULL pointer. 'Temp_value_#32650' contains the same NULL value as 'new(1*144, nothrow)' did.  [D:\a\xdp-for-windows\xdp-for-windows\test\functional\lib\xdptests.vcxproj]
    14>Done Building Project "D:\a\xdp-for-windows\xdp-for-windows\test\functional\lib\xdptests.vcxproj" (default targets) -- FAILED.

I don't have a deep enough understanding of C++ to understand why the WIL changes suddenly raise a compiler error - the diff seems benign to me - could you please take a look?

wil_build_error.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions