Skip to content

Fix buffer underrun in read_chk_line for empty line #4

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fmayer
Copy link

@fmayer fmayer commented Feb 3, 2025

Also remove redundant condition. We do p = strchr(line, '\n') which looks for the
first '\n', so *(p -1) can never be '\n'

Also remove redundant condition. We do

p = strchr(line, '\n') which looks for the *first* \n, so *(p -1) can never be '\n'
@valgur
Copy link
Owner

valgur commented Feb 17, 2025

Thanks a lot for the fixes! I will review and merge them.

At a higher level, though, I'm not sure how much I'm willing to commit to maintaining the core rnxcmp software that this Python wrapper currently vendors without any real modifications. A much more reliable and sustainable approach in the long term would probably be to add Python bindings for this Rust rewrite instead: https://github.com/georust/rinex

@fmayer
Copy link
Author

fmayer commented Feb 18, 2025

Thanks a lot for the fixes! I will review and merge them.

At a higher level, though, I'm not sure how much I'm willing to commit to maintaining the core rnxcmp software that this Python wrapper currently vendors without any real modifications. A much more reliable and sustainable approach in the long term would probably be to add Python bindings for this Rust rewrite instead: https://github.com/georust/rinex

Makes sense. Do you happen to know if there is any way to contribute this upstream? I looked a bit but couldn't really find any way to get patches to them.

@valgur
Copy link
Owner

valgur commented Feb 18, 2025

I have not been on touch with the author, but the only way to reach him is probably over email. I remember him being active on this mailing list: https://lists.igs.org/pipermail/igsmail/2021/008129.html

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.

2 participants