Skip to content

fix: resolve CodeQL alerts from the PBP and browser changes - #23

Merged
drpetersonfernandes merged 1 commit into
masterfrom
fix/codeql-followup
Nov 24, 2026
Merged

drpetersonfernandes merged 1 commit into
masterfrom
fix/codeql-followup

Conversation

@drpetersonfernandes

Copy link
Copy Markdown
Collaborator

Summary

Follow-up for the five CodeQL findings introduced by the previous PBP/browser changes:

  • DiscImageSignature.Detect now catches only the expected file-inspection failures (IOException, UnauthorizedAccessException, ArgumentException, NotSupportedException, SecurityException).
  • The clipboard failure path now catches only clipboard-related exception types instead of all exceptions.
  • Three test paths use Path.Join instead of Path.Combine.

Verification

  • dotnet build CSharp_CHDStudio.sln -c Release - 0 warnings, 0 errors
  • dotnet test CHDStudio.Tests/CHDStudio.Tests.csproj -c Release --filter "Category!=Integration" - 1302 passed
  • jb inspectcode - 0 warnings, 0 errors

Use specific exception filters and Path.Join so the new code does not add catch-all or path-combine findings.
@drpetersonfernandes
drpetersonfernandes merged commit 0845e66 into master Nov 24, 2026
12 checks passed
@drpetersonfernandes
drpetersonfernandes deleted the fix/codeql-followup branch November 24, 2026 02:49
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