Skip to content

Fix SonarCloud BLOCKER reliability issues#233

Open
albertmena wants to merge 2 commits into
mainfrom
agent_sonarcloud_medium
Open

Fix SonarCloud BLOCKER reliability issues#233
albertmena wants to merge 2 commits into
mainfrom
agent_sonarcloud_medium

Conversation

@albertmena

@albertmena albertmena commented May 28, 2026

Copy link
Copy Markdown
Contributor

CloudeCode Sonet/Medium copiloted

  • metadata_static.cpp: validate label before indexing data[] in labelType()
  • rwJPEG.cpp: free buffer allocation to prevent memory leak
  • matrix2d.cpp: fix sizeof(T) in memcpy; add NOSONAR on NR pointer arithmetic
  • matrix2d.h: add NOSONAR on out-of-bounds NR pointer arithmetic
  • matrix1d.h: call coreDeallocate() in coreAllocate() to prevent leak
  • xmipp_strings.cpp: fix negative-index bug when _width=0 and I<0

- metadata_static.cpp: validate label before indexing data[] in labelType()
- rwJPEG.cpp: free buffer allocation to prevent memory leak
- matrix2d.cpp: fix sizeof(T) in memcpy; add NOSONAR on NR pointer arithmetic
- matrix2d.h: add NOSONAR on out-of-bounds NR pointer arithmetic
- matrix1d.h: call coreDeallocate() in coreAllocate() to prevent leak
- xmipp_strings.cpp: fix negative-index bug when _width=0 and I<0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@albertmena albertmena requested a review from oierlauzi May 28, 2026 09:44
@sonarqubecloud

sonarqubecloud Bot commented Jun 2, 2026

Copy link
Copy Markdown

@albertmena albertmena enabled auto-merge (squash) June 2, 2026 07:03
@albertmena albertmena disabled auto-merge June 2, 2026 07:03
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