Skip to content

[codex] Fix protocol null dereference paths#15275

Open
NotPppp1116 wants to merge 1 commit into
hyprwm:mainfrom
NotPppp1116:codex/crash-more
Open

[codex] Fix protocol null dereference paths#15275
NotPppp1116 wants to merge 1 commit into
hyprwm:mainfrom
NotPppp1116:codex/crash-more

Conversation

@NotPppp1116

@NotPppp1116 NotPppp1116 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What changed

Fixes two protocol paths that could dereference missing wrapper objects while handling client requests:

  • wp_color_manager_v1.get_image_description: when the referenced image description lookup fails, create the requested image-description object and send the failure on it instead of dereferencing the missing old reference.
  • zxdg_output_manager_v1.get_xdg_output: validate CWLOutputResource::fromResource(outputResource) before using the returned output wrapper.

@NotPppp1116 NotPppp1116 marked this pull request as ready for review June 29, 2026 10:58
const auto OLD_RES = CColorManagementImageDescription::fromReference(ref);
if (!OLD_RES) {
OLD_RES->resource()->sendFailed(WP_IMAGE_DESCRIPTION_V1_CAUSE_UNSUPPORTED, "Not found");
const auto RESOURCE = PROTO::colorManagement->m_imageDescriptions.emplace_back(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excuse me what?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants