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

lib/ogsf: Dereference after null check in gvl2.c #4588

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

ShubhamDesai
Copy link
Contributor

@ShubhamDesai ShubhamDesai commented Oct 24, 2024

This pull request addresses the issue identified by coverity scan (CID: 1207416)

  • Added else block where gvl might be null.
  • Used G_debug with level 2 which is moderate as it is already aware that it is accessing null volume structure through the message
  • Thought behind using G_debug was to print some additional logs instead of just G_warning. (Open to change to normal G_warning or any other level in G_debug)

@github-actions github-actions bot added C Related code is in C libraries labels Oct 24, 2024
@echoix echoix merged commit 528763f into OSGeo:main Oct 30, 2024
27 checks passed
@github-actions github-actions bot added this to the 8.5.0 milestone Oct 30, 2024
@a0x8o a0x8o mentioned this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants