Skip to content

llx/builtin_array: nil-check leftArray in cmpArrayOne#7461

Open
SAY-5 wants to merge 2 commits into
mondoohq:mainfrom
SAY-5:fix/cmp-array-nil-7258
Open

llx/builtin_array: nil-check leftArray in cmpArrayOne#7461
SAY-5 wants to merge 2 commits into
mondoohq:mainfrom
SAY-5:fix/cmp-array-nil-7258

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 2, 2026

Copy link
Copy Markdown

Closes #7258. http connection without scheme defaults the resp body to nil; leftArray.Value.([]any) then panics the shell.

Closes mondoohq#7258. http.get.header.params[k] returns nil on connection failure; the bare type assertion panicked the shell.
@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@mondoo-code-review mondoo-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fixes a nil-pointer panic when comparing arrays with null left operands.

@SAY-5

SAY-5 commented May 3, 2026

Copy link
Copy Markdown
Author

CLA pending signature on my end, will sign shortly to unblock.

@arlimus arlimus left a comment

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.

Sorry for being so late on this one! 🙈
Great fix, I'll expand the tests after merging and look for similar issues. I'll keep a closer eye not to let this one slip by again - thank you again!

@arlimus

arlimus commented May 26, 2026

Copy link
Copy Markdown
Member

Oh just the CLA is missing! If you would be so kind, it's as simple as adding a commit with the message:

I have read the Mondoo CLA Document and I hereby sign the CLA

e.g. via

git commit --allow-empty -m "I have read the Mondoo CLA Document and I hereby sign the CLA"

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@SAY-5

SAY-5 commented May 28, 2026

Copy link
Copy Markdown
Author

I have read the Mondoo CLA Document and I hereby sign the CLA

@SAY-5

SAY-5 commented May 28, 2026

Copy link
Copy Markdown
Author

recheck

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.

host panic if you connect with default schema

2 participants