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 overrunning log_level_to_string for invalid loglevel #1011

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Dec 13, 2024

There is a Buffer Overflow in the log_level_to_string when passing in a LogLevel (i.e. an index) out of range of the log_level_strings array. This PR fixes the log_level_to_string function and adds an unit test incl. these test cases to verify it.

Signed-off-by: Michael Engel <mengel@redhat.com>
@engelmi
Copy link
Member Author

engelmi commented Dec 13, 2024

/packit build

@coveralls
Copy link

Coverage Status

coverage: 81.016% (+0.003%) from 81.013%
when pulling abd3d80 on engelmi:fix-defect-type-overrun
into c31e3e5 on eclipse-bluechi:main.

Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

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

LGTM

@mwperina
Copy link
Member

/packit build

@engelmi
Copy link
Member Author

engelmi commented Dec 13, 2024

/packit retest-failed

1 similar comment
@engelmi
Copy link
Member Author

engelmi commented Dec 13, 2024

/packit retest-failed

@engelmi
Copy link
Member Author

engelmi commented Dec 13, 2024

Testing Farm currently fails to provision the environment. Since the all tests passed in GH CI and on one run in TF, lets merge. (In a previous run TF with valgrind succeeded as well).

@engelmi engelmi merged commit 317d49d into eclipse-bluechi:main Dec 13, 2024
21 of 22 checks passed
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