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

Fix nil pointer dereference in sysctlInspect #340

Open
wants to merge 2 commits into
base: release-1.0
Choose a base branch
from

Conversation

hiyongliz
Copy link

@hiyongliz hiyongliz commented Oct 18, 2024

What type of PR is this?

/kind bug

What this PR does / why we need it:

Fixes the conditional logic in the parseSysctlVal function.
To fix an out-of-bounds access bug when the val array is empty.

Which issue(s) this PR fixes:

Fixes #328

Special notes for your reviewer:

@pixiake

help me check the modify, thanks

Does this PR introduce a user-facing change?:

@ks-ci-bot ks-ci-bot added kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 18, 2024
@hiyongliz
Copy link
Author

/assign @pixiake @liangzai006

@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hiyongliz
To complete the pull request process, please ask for approval from pixiake after the PR has been reviewed.

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. 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.

bug: parseSysctlVal 代码错误?
4 participants