Skip to content

Conversation

@sdowell
Copy link
Contributor

@sdowell sdowell commented Jun 16, 2025

This handles the case where a null error is passed into the Logger without causing a null pointer dereference / segfault. There are currently a couple places that invoke this function with a nil error and were resulting in a segfault.

This handles the case where a null error is passed into the Logger
without causing a null pointer dereference / segfault. There are
currently a couple places that invoke this function with a nil error and
were resulting in a segfault.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 16, 2025
@k8s-ci-robot k8s-ci-robot requested review from stp-ip and thockin June 16, 2025 17:13
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 16, 2025
@thockin
Copy link
Member

thockin commented Jun 17, 2025

This seems reasonable - can you show how this might be hit? It has never come up before .

@sdowell
Copy link
Contributor Author

sdowell commented Jun 17, 2025

This seems reasonable - can you show how this might be hit? It has never come up before .

At the time of writing there are two places that explicitly call this with nil:

@thockin
Copy link
Member

thockin commented Jun 17, 2025

Hmm, I guess we don't have good tests for these.

@thockin
Copy link
Member

thockin commented Jun 17, 2025

Thanks!

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 17, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sdowell, thockin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 17, 2025
@k8s-ci-robot k8s-ci-robot merged commit 534976a into kubernetes:master Jun 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants