Skip to content

r.out.ppm: Fix buffer issues in main.c #5904

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 3 commits into
base: main
Choose a base branch
from

Conversation

ShubhamDesai
Copy link
Contributor

This pull request fixes issue identified by Coverity Scan (CID : 1208236)
Used G_strlcpy() and G_strlcat() to fix this issue.
For G_strlcat(), added a return value check with G_fatal_error() instead of silencing it with (void) (not sure whether it would fit within 1000 characters), even though the buffer ofile is 1000 bytes wide.

@github-actions github-actions bot added raster Related to raster data processing C Related code is in C module labels Jun 17, 2025
ShubhamDesai and others added 2 commits June 18, 2025 14:27
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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 module raster Related to raster data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant