Skip to content

Potential fix for code scanning alert no. 8492: Container contents are never accessed#18

Merged
ChristianRosewich merged 1 commit into
masterfrom
alert-autofix-8492
Jul 14, 2026
Merged

Potential fix for code scanning alert no. 8492: Container contents are never accessed#18
ChristianRosewich merged 1 commit into
masterfrom
alert-autofix-8492

Conversation

@ChristianRosewich

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/ChristianRosewich/CSharp/security/code-scanning/8492

Die beste Korrektur ohne Funktionsänderung ist: ungenutzte BindingSource-Objekte entfernen, solange es keine zugehörigen Controls gibt, an die sie gebunden werden.
Konkret in GenFreeWin/GenFreeWin/Gen_FreeWin/Views/FehlerliViewModelFactory.cs innerhalb von SetupDataBindings(...) die Blöcke für:

  • personenErrorsBinding
  • familienErrorsBinding

löschen.
So bleibt das aktuelle Verhalten unverändert (List1/List2 funktionieren wie bisher), und der CodeQL-Befund wird sauber beseitigt. Es sind keine neuen Methoden, Definitionen oder Imports nötig.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…e never accessed

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@ChristianRosewich ChristianRosewich marked this pull request as ready for review July 14, 2026 12:30
@ChristianRosewich ChristianRosewich merged commit 2be3083 into master Jul 14, 2026
1 of 3 checks passed
@ChristianRosewich ChristianRosewich deleted the alert-autofix-8492 branch July 14, 2026 12:30
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