Skip to content

Fix: shortcut add & launch app validation via try-catch blocks - #77

Merged
tecnolgd merged 3 commits into
mainfrom
fix/valid
Jul 27, 2026
Merged

Fix: shortcut add & launch app validation via try-catch blocks#77
tecnolgd merged 3 commits into
mainfrom
fix/valid

Conversation

@tecnolgd

Copy link
Copy Markdown
Owner

What's Changed

  • Included try-catch blocks in src/core/command_handler.cpp, src/features/launch.cpp and src/features/shortcuts.cpp for robust validation of shortcuts and launch commands both via command handler mode and interactive mode.
  • Included additional validation functions for shortcut add operation (static bool isValidShortcutName() & static bool isAllowedLaunchApp() to check for validity in the shortcut to be added and the app for which the shortcut is created.

Fixes #34

@tecnolgd
tecnolgd merged commit 26a8e23 into main Jul 27, 2026
2 checks passed
@tecnolgd
tecnolgd deleted the fix/valid branch July 27, 2026 04:17
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.

Bug: validate input bounds in launcher to prevent command injection

1 participant