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

Check for nil before dereferencing agent config pointer #420

Merged
merged 1 commit into from
Mar 16, 2021
Merged

Conversation

lgfa29
Copy link
Contributor

@lgfa29 lgfa29 commented Mar 15, 2021

Calling Merge or any of the block-specific merge methods would panic because we were dereferencing the pointer before checking for nil.

Fixes #419

@lgfa29 lgfa29 added this to the 0.3.1 milestone Mar 15, 2021
Copy link
Contributor

@cgbaker cgbaker left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

LGTM

Fix confirmed against local repro.

@lgfa29 lgfa29 merged commit d37a958 into main Mar 16, 2021
@lgfa29 lgfa29 deleted the fix-gh-419 branch March 16, 2021 15:01
lgfa29 added a commit that referenced this pull request Mar 20, 2021
lgfa29 added a commit that referenced this pull request Mar 20, 2021
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.

nil pointer dereference when parsing multiple config file
3 participants