Skip to content

[ocdm] Support null initDataType when constructing OCDM session#327

Open
eocanha wants to merge 1 commit intordkcentral:R4_4from
eocanha:eocanha-001
Open

[ocdm] Support null initDataType when constructing OCDM session#327
eocanha wants to merge 1 commit intordkcentral:R4_4from
eocanha:eocanha-001

Conversation

@eocanha
Copy link
Copy Markdown

@eocanha eocanha commented Feb 25, 2026

The loadSession() use case in WebKit (see experimental proposal here) is planning to pass nullptr as initDataType. This would cause a crash, since std::string can't be constructed from a nullptr (see point (8)).

This commit just creates an empty std::string in that case, avoiding the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants