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

v1.1.2+ does not process last line if it misses the terminating LF #135

Closed
rgerhards opened this issue Aug 24, 2015 · 0 comments · Fixed by #136
Closed

v1.1.2+ does not process last line if it misses the terminating LF #135

rgerhards opened this issue Aug 24, 2015 · 0 comments · Fixed by #136
Labels

Comments

@rgerhards
Copy link
Member

This problem occurs with the very last line of a rulebase (at EOF). If it is not properly terminated (LF missing), it is silently ignored. Previous versions did obviously process lines in this case. While technically this is invalid input, we can't outrule that such rulebases exist. For example, they do in the rsyslog testbench, which made us aware of the problem (see rsyslog/rsyslog#489).

I think the proper way of addressing this is to process such lines without termination, as many other tools do as well. Maybe we should emit a warning, but not sure if that makes a lot of sense (especially as this case is pretty uncommon and not a real issue).

rgerhards added a commit to rgerhards/liblognorm that referenced this issue Aug 24, 2015
This problem occurs with the very last line of a rulebase (at EOF).
If it is not properly terminated (LF missing), it is silently ignored.
Previous versions did obviously process lines in this case. While
technically this is invalid input, we can't outrule that such rulebases
exist. For example, they do in the rsyslog testbench, which made
us aware of the problem (see rsyslog/rsyslog#489 ).

I think the proper way of addressing this is to process such lines without
termination, as many other tools do as well.

closes rsyslog#135
@rgerhards rgerhards added the bug label Aug 24, 2015
rgerhards added a commit to rgerhards/liblognorm that referenced this issue Aug 24, 2015
This problem occurs with the very last line of a rulebase (at EOF).
If it is not properly terminated (LF missing), it is silently ignored.
Previous versions did obviously process lines in this case. While
technically this is invalid input, we can't outrule that such rulebases
exist. For example, they do in the rsyslog testbench, which made
us aware of the problem (see rsyslog/rsyslog#489 ).

I think the proper way of addressing this is to process such lines without
termination, as many other tools do as well.

closes rsyslog#135
rgerhards added a commit to rgerhards/liblognorm that referenced this issue Aug 24, 2015
This problem occurs with the very last line of a rulebase (at EOF).
If it is not properly terminated (LF missing), it is silently ignored.
Previous versions did obviously process lines in this case. While
technically this is invalid input, we can't outrule that such rulebases
exist. For example, they do in the rsyslog testbench, which made
us aware of the problem (see rsyslog/rsyslog#489 ).

I think the proper way of addressing this is to process such lines without
termination, as many other tools do as well.

closes rsyslog#135
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant