Crash in /sub Command with Malformed JID Input
#22
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The
/subcommand crashes when provided with malformed JID inputs (e.g.,@example.com). The issue occurs becausejid_createmay return aNULLpointer for invalid inputs, butcmd_subdoes not check for this before proceeding.Steps to Reproduce
Expected Behavior
Display an error message (e.g., "Malformed JID: @example.com") and continue execution.
Proposed Fix
Jidpointer returned byjid_createcons_show.