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

Fixed crash on startup caused by missing cfg options in certain scl drivers #5163

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

therandomstring
Copy link
Contributor

Certain SCL drivers have options without default values. This could (and in certain cases does) result in _report_generator_args trying to iterate on a nullpointer, and crashing syslog-ng in the process.

therandomstring added a commit that referenced this pull request Oct 31, 2024
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
lib/cfg-block-generator.c Outdated Show resolved Hide resolved
therandomstring added a commit that referenced this pull request Nov 4, 2024
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
lib/cfg-block-generator.c Outdated Show resolved Hide resolved
…scl drivers

Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
@therandomstring therandomstring merged commit 6113797 into master Nov 4, 2024
51 of 52 checks passed
@kira-syslogng
Copy link
Contributor

Build FAILURE

@kovgeri01 kovgeri01 deleted the fix-cfg-nullptr-crash branch November 6, 2024 08:14
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.

3 participants