Skip to content

Conversation

ShubhamDesai
Copy link
Contributor

This pull request fixes issue identified by Coverity Scan (CID : 1207810)

@github-actions github-actions bot added vector Related to vector data processing C Related code is in C module labels Aug 17, 2025
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.

This one is a pure false positive. list is allocated (in format_list()) only if len > 0, which is checked in line 78. We might try to satisfy the Analyser with the added check of list (L78):

    if (list && len > 0) {

@github-project-automation github-project-automation bot moved this to In Progress in GRASS GIS Security Aug 22, 2025
@nilason nilason added this to the 8.5.0 milestone Aug 22, 2025
@ShubhamDesai
Copy link
Contributor Author

This one is a pure false positive. list is allocated (in format_list()) only if len > 0, which is checked in line 78. We might try to satisfy the Analyser with the added check of list (L78):

    if (list && len > 0) {

Done

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 vector Related to vector data processing
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants