Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator/pkg: mitigate null pointer dereference in Validate() and newRunData() functions #5617

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 27, 2024

  1. operator/pkg: mitigate null pointer dereference

    In this commit, we mitigate the null pointer dereference issue
    in the deinit operator pkg by adding defensive checks on
    `opt.Karmada.Spec.HostCluster` in `newRunData` func and on
    `opt.Karmada.Spec.Components` in `Validate` in `init.go`.
    
    Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
    mohamedawnallah committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    497d79a View commit details
    Browse the repository at this point in the history