Skip to content

fix: NULL dereference in rd_kafka_cgrp_op#5318

Open
Ender Wang (Ender-Wang) wants to merge 1 commit intoconfluentinc:masterfrom
Ender-Wang:fix_5315
Open

fix: NULL dereference in rd_kafka_cgrp_op#5318
Ender Wang (Ender-Wang) wants to merge 1 commit intoconfluentinc:masterfrom
Ender-Wang:fix_5315

Conversation

@Ender-Wang

Copilot AI review requested due to automatic review settings February 17, 2026 05:48
@Ender-Wang Ender Wang (Ender-Wang) requested a review from a team as a code owner February 17, 2026 05:48
@confluent-cla-assistant
Copy link

confluent-cla-assistant bot commented Feb 17, 2026

🎉 All Contributor License Agreements have been signed. Ready to merge.
✅ Ender-Wang
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes a critical NULL pointer dereference in the rd_kafka_cgrp_op function that occurs when a broker goes down. The crash happens at offset 0x58 within the rkcg structure when attempting to access rkcg->rkcg_ops.

Changes:

  • Added NULL check for rkcg parameter at the beginning of rd_kafka_cgrp_op function
  • Early return if rkcg is NULL, preventing the dereference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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