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

Handle a null return value for proj_sys::proj_errno_string in the proj crate #73

Open
frewsxcv opened this issue Feb 11, 2021 · 0 comments · May be fixed by #74
Open

Handle a null return value for proj_sys::proj_errno_string in the proj crate #73

frewsxcv opened this issue Feb 11, 2021 · 0 comments · May be fixed by #74

Comments

@frewsxcv
Copy link
Member

We use proj_sys::proj_errno_string in the proj crate. The proj_sys::proj_errno_string function can return a null pointer, but we don't handle that case currently.

See this comment for context: https://github.com/georust/proj/pull/72/files#r574590647

urschrei added a commit to urschrei/rust-proj that referenced this issue Feb 13, 2021
It's possible that libproj will return a null pointer instead of an
actual error string. In this case we now return a specific error
indicating this.

Fixes georust#73
urschrei added a commit to urschrei/rust-proj that referenced this issue Aug 16, 2021
It's possible that libproj will return a null pointer instead of an
actual error string. In this case we now return a specific error
indicating this.

Fixes georust#73
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 a pull request may close this issue.

1 participant