-
Notifications
You must be signed in to change notification settings - Fork 17
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
segfault when opening rules file #124
Comments
Hi @jyoung15, thanks for pointing this out! Please feel free to open a pull request with your suggested fix. Contributions are welcome! |
jyoung15
added a commit
to jyoung15/go-elasticsearch-alerts
that referenced
this issue
Oct 18, 2022
jyoung15
added a commit
to jyoung15/go-elasticsearch-alerts
that referenced
this issue
Oct 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When attempting to open a rules files that is unreadable (for example due to file permissions), the program crashes:
This appears to be due to invalid use of the file pointer when os.Open returns an error. Suggested fix below. Can submit pull request upon request.
With patch above applied, error message appears as expected:
The text was updated successfully, but these errors were encountered: