Skip to content

DllGetClassObject does not reliably initialize its out pararameter #127881

Closed

Description

@rgatkinson

COM_API HRESULT STDMETHODCALLTYPE DllGetClassObject(

COM out parameters should always be initialized, even in failure cases. Here, DllGetClassObject has code paths that return failure HRESULTs without initializing *ppv. A simple *ppv = nullptr; at the top of the function would do the trick.

Activity

  1. added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on May 6, 2026
  2. removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on May 6, 2026
  3. dotnet-policy-service commented on May 6, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/interop-contrib
    See info in area-owners.md if you want to be subscribed.

  4. locked and limited conversation to collaborators on Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions