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

i.smap: fix sizeof not portable issue #4060

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

ShubhamDesai
Copy link
Contributor

Issue: Sizeof not portable issue identified by coverity scan

This pull request resolves a sizeof mismatch issue identified by Coverity Scan (CID 1208214) in the memory allocation logic of the multialloc function.

Changes Made:
Replaced the use of sizeof(char **) with sizeof(char *) to ensure correct and portable memory allocation.

@github-actions github-actions bot added C Related code is in C module imagery labels Jul 15, 2024
Copy link
Contributor

@nilason nilason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

(In fact, this was the original implementation in https://engineering.purdue.edu/~bouman/software/segmentation/, must have been changed in the way in to GRASS GIS). edit: wrong, I misread the lines

@nilason nilason added this to the 8.5.0 milestone Aug 5, 2024
@nilason nilason merged commit eb9bda6 into OSGeo:main Aug 5, 2024
26 checks passed
landam pushed a commit to landam/grass that referenced this pull request Aug 22, 2024
Mahesh1998 pushed a commit to Mahesh1998/grass that referenced this pull request Sep 19, 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 imagery module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants