microsoft / microsoft/win32metadata

Exempt OleConvertIStorageToOLESTREAM / OleConvertIStorageToOLESTREAMEx from returning OLESTREAM

Open
#2,207 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C++
Stars
1.5k
Forks
149
Avg merge
5d 16h
Merged PRs (30d)
4

Description

### Summary

With these functions it's customary to write the OLESTREAM and its associated vtable yourself. The current API prohibits this by writing to a zeroed instance of OLESTREAM (causing a nullptr deref) without giving the user the opportunity to fill out the vtable / struct contents.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the metadata or generation entries for OleConvertIStorageToOLESTREAM and OleConvertIStorageToOLESTREAMEx, then inspect how their OLESTREAM parameters are represented. Confirm the generated API permits callers to provide the OLESTREAM and associated vtable without the current zeroed-instance write or null dereference. No specific files or tests are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.