Skip to content

Conversation

BenchBeach
Copy link

Thank you for your excellent work on this library.

This PR proposes a change to improve the robustness of the gz_open function by adding a NULL check for the mode parameter.

This ensures its argument validation is consistent with the existing check for the path parameter. More importantly, it prevents a potential segmentation fault if the function is called with a NULL mode, making it safer and more predictable for users.

I hope you find this a welcome improvement. Thank you for your time and for considering this contribution.

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.

1 participant